Changing UITabBarController More Item Colors

Posted by Avalanchis on Stack Overflow See other posts from Stack Overflow or by Avalanchis
Published on 2010-03-23T13:59:52Z Indexed on 2010/03/23 14:03 UTC
Read the original article Hit count: 864

I have a UITabBarController with a "More" tab whose color scheme I would like to modify.

Navigation Controller Nav Bar Colors

I've been able to change the background color of the "More" tab's UINavigationController by subclassing the UITabBarController and adding the following code to the ViewDidLoad method:

UINavigationController *moreController = self.moreNavigationController;
moreController.navigationBar.tintColor = [UIColor redColor];

I would also like to change the Nav controller's text color but have not been able to determine how to accomplish this.

Table View Highlight Colors

I'd like to disable or change the highlight color for the "More" tab's UITableView. I don't want to disable the ability to select, I just want to change or remove the blue highlight color.

I see where I can change the SelectedTextColor property for a UITableViewCell's texLabel, but I'm unsure how or when this needs to be set given I'm not the table view's datasource.

Edit View Nav Bar Color

When the Edit button is selected, the nav bar at the top reverts to the basic blue color.

Is there any way to access this nav bar to change its tint color?

© Stack Overflow or respective owner

Related posts about iphone

Related posts about uitabbarcontroller