How to change font color of the title in grouped type UITableView?

前端 未结 6 1602
轮回少年
轮回少年 2020-12-13 03:55

I have a grouped type table view and it looks pretty cool.

But, if I change the background color of the table to black, the titles becomes unclear.

Is it pos

6条回答
  •  甜味超标
    2020-12-13 04:35

    if ([UIDevice currentDevice].systemVersion.floatValue > 7.0) {
        [[UILabel appearanceWhenContainedIn:[UITableViewHeaderFooterView class], nil] setTextColor:[UIColor whiteColor]];
    }
    

提交回复
热议问题