摘要: http://www.cocoachina.com/ios/20150106/10850.html我们知道在Block使用中,Block内部能够读取外部局部变量的值。但我们需要改变这个变量的值时,我们需要给它附加上__block修饰符。__block另外一个比较多的使用场景是,为了避免某些情况下Bl... 阅读全文
posted @ 2015-10-21 19:02 Cheetah_yang 阅读(186) 评论(0) 推荐(0) 编辑
摘要: 另外,OC中有一个专门的快速枚举的迭代器类NSEnumerator,这个类的使用方法如下://得到一个对应的enumerator对象NSEnumerator * enumerator = [self.view.subviews reverseObjectEnumerator];for(UIView ... 阅读全文
posted @ 2015-10-21 18:39 Cheetah_yang 阅读(167) 评论(0) 推荐(0) 编辑
摘要: http://www.jianshu.com/p/047463a7ce9b?utm_campaign=hugo&utm_medium=reader_share&utm_content=note&utm_source=weixin-timeline&from=timeline&isappinstall... 阅读全文
posted @ 2015-10-21 09:54 Cheetah_yang 阅读(381) 评论(0) 推荐(0) 编辑