2014年12月25日

解决Collection <__NSArrayM: 0xb550c30> was mutated while being enumerated

摘要: 当程序出现这个提示的时候,是因为你一边便利数组,又同时修改这个数组里面的内容,导致崩溃,网上的方法如下:123456789NSMutableArray*arrayTemp=xxx;NSArray*array=[NSArrayarrayWithArray:arrayTemp];for(NSDictio... 阅读全文

posted @ 2014-12-25 22:27 zhao_gw 阅读(246) 评论(0) 推荐(0) 编辑

UIViewController的生命周期

摘要: iOS基础界面就是通过UIViewController展示的。首先区分content controller和container controller的区别。content controlller就是展示我们当前页面的controller,而container controller就是一个管理cont... 阅读全文

posted @ 2014-12-25 22:25 zhao_gw 阅读(285) 评论(0) 推荐(0) 编辑

makeObjectsPerformSelector 方法的用法

摘要: nsarray 类定义的方法1.makeObjectsPerformSelector:@select(aMethod)简介:让数组中的每个元素 都调用aMethod2.makeObjectsPerformSelector:@select(aMethod) withObject:o... 阅读全文

posted @ 2014-12-25 22:23 zhao_gw 阅读(112) 评论(0) 推荐(0) 编辑

导航