2016年2月19日

iOS 52个技巧学习心得笔记 第二章 对象 , 消息, 运行期

摘要: 1. 属性 在开发过程中经常要用到定义属性,@property和@synthesize是经常用到的属性, property在.h文件中作声明,@synthesize在.m文件中用于实现 // Student.h // property // // Created by Rio.King on 13- 阅读全文

posted @ 2016-02-19 17:24 ACM_Someone like you 阅读(309) 评论(0) 推荐(0) 编辑

iOS 快速遍历 效率分析 for loop for in enumerateBlock 适用条件

摘要: test1 简单遍历 结论: 当数组数据量很小 时候 for loop 和 for in 效率不相上下,随着数据量增长for in 快速枚举的优势 明显 如果需要知道 索引可用 enumrateBlock test2 根据value 查找对应index 例如 查找9999999对应索引 结论: 数据 阅读全文

posted @ 2016-02-19 16:37 ACM_Someone like you 阅读(1991) 评论(0) 推荐(0) 编辑

导航