首页 > 移动平台 > 详细

iOS 设置tableView右侧索引

时间:2016-08-20 17:54:42      阅读:416      评论: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
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!