自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(11)
  • 收藏
  • 关注

转载 【quick】quick-cocos2d-x 学习记录

quick-cocos2d-x 入门 http://www.cocos.com/doc/tutorial/lists?id=129&per_page=9 转载于:https://www.cnblogs.com/kaysun/p/5535397.html

2016-05-27 17:17:00 119

转载 【转载】Xcode编译Undefined symbols for architecture xxx 错误总结

原文地址 http://my.oschina.net/ioslighter/blog/363211?fromerr=vcwQiVOs 转载于:https://www.cnblogs.com/kaysun/p/5520040.html

2016-05-23 15:05:00 120

转载 【ios】判断日期是今天

NSDate *currentDate = [NSDate date]; NSCalendar *calendar = [NSCalendar currentCalendar]; NSDateComponents *components = [calendar components:(NSYearCalendarUnit | NSMonthCalend...

2016-05-23 14:10:00 123

转载 【ios】 日期单独对年、月、日做加减

1、当前时间减去18年      NSDate *currentDate = currentDate = [NSDate date];     NSCalendar *calendar = nil; if ([UIDevice currentDevice].systemVersion.doubleValue >= 8.0) { ca...

2016-05-23 11:09:00 484

转载 【ios】Settings 设置项

成果展示 1、创建Setttings.Bundle 2、修改Root.plist <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/Propert...

2016-05-11 10:45:00 1133

转载 【ios】 block里引用成员变量导致memory leak

bolck语句不允许修改成员变量,如果需要修改成员变量需要在修饰成员变量前加__block block的循环引用就是一个天坑,一不小心就绕进去了,在block里引用成员变量,会引起memory leak,原代码如下 @interface KEUserInfoParentSettingView() { CGFloat progressWidth; } ...

2016-05-10 15:30:00 165

转载 【ios】ios7以上 使用MPVolumeView获取系统音量

众所周知,ios7已经废弃了MPMusicPlayerController ios7以下使用[[MPMusicPlayerControllerapplicationMusicPlayer] setVolume:value]; 那么ios7以上呢?使用MPVolumeView。 然而MPVolumeView有其局限性,MPVolumeView的subviews中的MPVolumeS...

2016-05-10 15:20:00 194

转载 【ios】收到系统内存警告时,应如何释放内存

- (void)didReceiveMemoryWarning { [super didReceiveMemoryWarning]; if (_userInfoViewCtl != nil && [_userInfoViewCtl isViewLoaded]) { if (_userInfoViewCtl.view.wind...

2016-05-09 18:02:00 343

转载 【ios】计算两个日期之间相差的年月日

     NSCalendar *gregorian = [[NSCalendar alloc] initWithCalendarIdentifier:NSGregorianCalendar]; [gregorian setFirstWeekday:2]; NSDate *fromDate = userInfo.birthDay; ...

2016-05-06 17:45:00 351

转载 【ios】禁止2个按钮同时响应点击

UIButton *btnNameGroup = [[UIButton alloc] init]; btnNameGroup.exclusiveTouch = YES; 虽然exclusiveTouch是UIView的属性,但是如果是UIImageView使用UITapGestureRecognizer的方式添加点击事件的情况下,这个字段是无效的 转载于:https://ww...

2016-04-28 17:17:00 201

转载 【ios】UIDatePicker作为UITextField的inputView的crash问题

新建一个uiview作为uitextfield的inputview,在此uiview中,加入一个uidatepickerview,此uiview是为了需求上的扩展,会有加入其它视觉元素的可能。 crash详情: 2016-05-12 10:07:44.437 LiveChild[2722:1916804] used: 374796288 free: 26144768 total...

2016-04-28 17:04:00 221

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除