2016
04-12
04-12
iOS 一个简单的通讯录
用tableview写了一个简单的通讯录,话不多说,咱们慢慢构建。首先,你需要一个tableview(这是肯定的。。代码就不贴了哈),接下来,你需要对数据源进行处理,按A-Z首字母分类。UILocalizedIndexedCollation*indexedCollation=[UILocalizedIndexedCollationcurrentCollation];[self.sectionHeaderArrayaddObjectsFromArray:[indexedCollationsectionTitles]];NSMutableArray*sortarray=[[NSMutableArrayalloc]init];...
继续阅读 >