码迷,mamicode.com
首页 > 移动开发 > 详细

iOS 设置tableView右侧索引

时间:2016-08-20 17:54:56      阅读:688      评论:0      收藏:0      [点我收藏+]

标签:

1.设置右侧索引字体颜色

 self.tabView.sectionIndexColor = [UIColor blackColor];

2.设置右侧索引背景色

self.cityTabView.sectionIndexBackgroundColor =[UIColor blackColor];

//显示每组标题索引

-(NSArray *)sectionIndexTitlesForTableView:(UITableView *)tableView

//返回每个索引的内容

-(NSString *)tableView:(UITableView *)tableView titleForHeaderInSection:(NSInteger)section

//响应点击索引时的委托方法

-(NSInteger)tableView:(UITableView *)tableView sectionForSectionIndexTitle:(NSString*)title atIndex:(NSInteger)index

iOS 设置tableView右侧索引

标签:

原文地址:http://www.cnblogs.com/hongyan1314/p/5790640.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!