How to change text color for Section Headers in a Grouped TableView in iPhone SDK?

后端 未结 7 1477
情深已故
情深已故 2020-12-14 08:10

I am making an iPhone app where in I have a grouped TableView with headers for the sections.

Problem is that I want to change the Section Header\'s text color.

7条回答
  •  情深已故
    2020-12-14 09:02

    Add the following code to your AppDelegate class in - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions method:

    [[UILabel appearanceWhenContainedIn:[UITableViewHeaderFooterView class], nil] setTextColor:[UIColor whiteColor]];
    

提交回复
热议问题