摘要: 1. [array valueForKey:@"title"]; //Returns an array containing the results of invoking valueForKey: using key on each of the array's objects. 使数组中的每个对 阅读全文
posted @ 2016-04-11 19:08 stevenwuzheng 阅读(623) 评论(0) 推荐(0) 编辑
摘要: UITableViewCell在重用ID时为何加上Static关键字 先回顾一下iOS各种变量作用域和生命周期相关知识: 1、方法中临时变量存储在栈区,出了该方法,临时变量会被自动销毁。但是如果给方法中的临时变量前加上static,就算出了该方法,栈也不会回收该临时变量,直到程序退出才释放内存。 2 阅读全文
posted @ 2016-04-11 13:08 stevenwuzheng 阅读(1671) 评论(0) 推荐(1) 编辑