(UITableViewCell )tableView:(UITableView )tv cellForRowAtIndexPath:(NSIndexPath *)indexPath { for(UIView *view in [tv subviews]) { if([[[view class] description] isEqualToString:@"UITableViewIndex"]) { [view setBackgroundColor:[UIColor whiteColor]]; [view setFont:[UIFont systemFontOfSize:14]]; } } //rest of cellForRow handling... }系统没有提供方法 我们可以遍历subview找到它在返回cell代理里修改Ant-Bang互助社区(Q群 426981364)为你回答
(UITableViewCell )tableView:(UITableView )tv cellForRowAtIndexPath:(NSIndexPath *)indexPath {
for(UIView *view in [tv subviews])
{
}
//rest of cellForRow handling...
}
系统没有提供方法 我们可以遍历subview找到它在返回cell代理里修改
Ant-Bang互助社区(Q群 426981364)为你回答