如何设置UITableView 右sectionIndex的字体大小?
Best Answer-推荐答案 strong>
Try this solution, this will definitely help you ->
Step 1) Add this method in your class
- (void)setUITableViewSectionIndexFontSizeUITableView*)tableView{
//UI the index view
for(UIView *view in [tableView subviews]) {
if([view respondsToSelectorselector(setIndexColor]) {
[view performSelectorselector(setIndexColor withObject:[UIColor grayColor]];
if ([view respondsToSelectorselector(setFont]) {
[view performSelectorselector(setFont withObject:[UIFont systemFontOfSize:20.0]];
[view performSelectorselector(setBackgroundColor withObject:[UIColor blueColor]];
}
}
}
}
Step 2) Now add this line just before [tableView reloadData] line ->
[self setUITableViewSectionIndexFontSize:tableView];
[tableView reloadData];
关于ios - 如何设置 UITableView 右侧 sectionIndex 的字体大小?,我们在Stack Overflow上找到一个类似的问题:
https://stackoverflow.com/questions/34715831/
|