如何改变tableview的section的颜色

2025-04-25 17:51:33
推荐回答(1个)
回答1:

方法一:调用-(UIView*)tableView:(UITableView*)tableViewviewForHeaderInSection:(NSInteger)section{UIView*myView=[[[UIViewalloc]init]autorelease];myView.backgroundColor=[UIColorcolorWithRed:0.10green:0.68blue:0