如何创建一个Plain TableView With Section And Index
2016-02-17 00:00
701 查看
摘要: 为Plain Section Table加入Index特性
##加入Index特性
Index特性一般都和Section一起使用。Index列表中的每个值等于每个Section的Title。
我们只需在如何创建一个Plain TableView With Section的基础上,在MyTableViewController.m中加入下列方法即可:
##加入Index特性
Index特性一般都和Section一起使用。Index列表中的每个值等于每个Section的Title。
我们只需在如何创建一个Plain TableView With Section的基础上,在MyTableViewController.m中加入下列方法即可:
-(NSArray *)sectionIndexTitlesForTableView:(UITableView *)tableView { return self.sectionTitles; }
相关文章推荐
- 跨进程访问(AIDL服务)-更新中
- Rails 控制器
- Async Await异步调用WebApi
- leetcode 182. Duplicate Emails
- Unix Study之--AIX系统监控工具tops
- Unix Study之--AIX系统监控工具tops
- DataGuard强制切换(failover)
- Raising Modulo Numbers(POJ 1995 快速幂)
- 本文只为记录,自学 CAAnaimation 中正在学习中...
- Keychains中此证书签发者无效的解决方法
- 一次Hadoop脑裂的修复(Cloudera hadoop split-brain repair)
- 浅谈xaingce apk样本分析
- Rails Commands
- python的类变量和实例变量 http://blog.csdn.net/chenggong2dm/article/details/9030481
- Rails Commands
- TairResult 缓存 计数器的使用
- 正常使用谷歌搜索引擎和Gmail的方法!
- 在mac上配置git send-email使用gmail
- Contains Duplicate,Contains Duplicate II,Contains Duplicate III
- 【DP】AIM Tech Round (Div. 2) D