您的位置:首页 > 大数据 > 人工智能

如何创建一个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中加入下列方法即可:

-(NSArray *)sectionIndexTitlesForTableView:(UITableView *)tableView {
return self.sectionTitles;
}
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: