摘要: quick-cocos2d-x 入门 http://www.cocos.com/doc/tutorial/lists?id=129&per_page=9 阅读全文
posted @ 2016-05-27 17:17 kaysun5230 阅读(109) 评论(0) 推荐(0) 编辑
摘要: 原文地址 http://my.oschina.net/ioslighter/blog/363211?fromerr=vcwQiVOs 阅读全文
posted @ 2016-05-23 15:05 kaysun5230 阅读(109) 评论(0) 推荐(0) 编辑
摘要: NSLog(@"today"); 阅读全文
posted @ 2016-05-23 14:10 kaysun5230 阅读(657) 评论(0) 推荐(0) 编辑
摘要: 1、当前时间减去18年 2、当前时间减去18年4个月12天 3、当前时间加上18年4个月12天 阅读全文
posted @ 2016-05-23 11:09 kaysun5230 阅读(1927) 评论(0) 推荐(0) 编辑
摘要: 成果展示 1、创建Setttings.Bundle 2、修改Root.plist 3、创建Root.plist中的两个子面板中,file对应的plist文件: UserProtocol.plist PravacyProtocol.plist 4、保证Root.plist UserProtocol.p 阅读全文
posted @ 2016-05-11 10:45 kaysun5230 阅读(1494) 评论(0) 推荐(0) 编辑
摘要: bolck语句不允许修改成员变量,如果需要修改成员变量需要在修饰成员变量前加__block block的循环引用就是一个天坑,一不小心就绕进去了,在block里引用成员变量,会引起memory leak,原代码如下 这种情况下,应该将成员变量改为属性,并使用weakself处理,代码如下 阅读全文
posted @ 2016-05-10 15:30 kaysun5230 阅读(999) 评论(0) 推荐(0) 编辑
摘要: 众所周知,ios7已经废弃了MPMusicPlayerController ios7以下使用[[MPMusicPlayerController applicationMusicPlayer] setVolume:value]; 那么ios7以上呢?使用MPVolumeView。 然而MPVolume 阅读全文
posted @ 2016-05-10 15:20 kaysun5230 阅读(4553) 评论(0) 推荐(0) 编辑
摘要: 注意_userInfoViewCtl和self.userInfoViewCtl的用法 这样做的原因是属性的延迟加载,若 _userInfoViewCtl.view.window 这里使用self.userInfoViewCtl.view.window的话,那么这个值一直都不会是nil,因为每次都用都 阅读全文
posted @ 2016-05-09 18:02 kaysun5230 阅读(304) 评论(0) 推荐(0) 编辑
摘要: 计算某人生日,采用这样的方式,可以有效的避免自己算月份的窘态,反正我不说你也知道,那月份存在28 29 30 31多样式变化,有系统API,这么棒的爽感。。。 你要是想算时分秒,就把NSCalendarUnitYear | NSCalendarUnitMonth | NSCalendarUnitDa 阅读全文
posted @ 2016-05-06 17:45 kaysun5230 阅读(2961) 评论(0) 推荐(0) 编辑
摘要: UIButton *btnNameGroup = [[UIButton alloc] init]; btnNameGroup.exclusiveTouch = YES; 虽然exclusiveTouch是UIView的属性,但是如果是UIImageView使用UITapGestureRecogniz 阅读全文
posted @ 2016-04-28 17:17 kaysun5230 阅读(446) 评论(0) 推荐(0) 编辑