首页 > UITableView点击cell的时候怎么改变sectionHeader的颜色?

UITableView点击cell的时候怎么改变sectionHeader的颜色?

-(void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath 

方法里,怎样获取到cell所在的sectionHeader以改变颜色?


可以通过indexPath获取section,然后刷新该section,在headerView的代理里面设置条件就可以更换颜色


【热门文章】
【热门文章】