Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Change color of NavigationBar for the "More" tab?

When you have more than 5 view controller in your TabBarController, a "More" view is automatically setup for you. Is it possible to change color of the navigationBar in this view to match the color I am using, instead of the default blue?

like image 706
runmad Avatar asked Dec 17 '22 03:12

runmad


1 Answers

OK. I should not have trusted the docs completely. I found the answer a couple of minutes later by trying it out. The docs lists the moreNavigationController is a read-only property. But this works fine for me:

tabBarController.moreNavigationController.navigationBar.barStyle = UIBarStyleBlackOpaque;

or

tabBarController.moreNavigationController.navigationBar.tintColor = [UIColor redColor];

In case anyone was wondering.

like image 102
runmad Avatar answered Dec 30 '22 11:12

runmad