iOS UITableView表格索引
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了iOS UITableView表格索引相关的知识,希望对你有一定的参考价值。
if ([myTableView respondsToSelector:@selector(setSectionIndexColor:)]) { myTableView.sectionIndexColor = [UIColor redColor]; myTableView.sectionIndexBackgroundColor = [UIColor yellowColor]; }
for(UIView *view in [tableView subviews]) { if([[[view class] description] isEqualToString:@"UITableViewIndex"]) { [view setBackgroundColor:[UIColor redColor]]; [view setTintColor:[UIColor redColor]]; } }
UITableView修改右边索引的位置和颜色。
本文出自 “雪花飞落满人间” 博客,请务必保留此出处http://smengxiang.blog.51cto.com/11204872/1862102
以上是关于iOS UITableView表格索引的主要内容,如果未能解决你的问题,请参考以下文章
UITableView 部分索引在 iOS 7 中定位错误的单元格,顶行隐藏在导航栏下