Hashmat Khalil
Hashmat Khalil

Reputation: 1816

ios 7 tabbar controller -> morenavigationcontroller barStyle & color

I'm trying to set the color of the tabbar controller to black for iOS7. all view controllers are dark black as expect except for morenavigationcontroller. the navigation bar and the tabbar part of the morenavigation controller is not as black as the others. its dark gray or light black. :) anyit doesnt match to other viewcontrollers.

self.tabBarController.tabBar.barStyle = UIBarStyleBlack;
self.tabBarController.moreNavigationController.navigationBar.barStyle = UIBarStyleBlack;

any clue on how to color it black?

Upvotes: 2

Views: 3168

Answers (1)

Tarek Hallak
Tarek Hallak

Reputation: 18470

I guess you didn't touch the translucent, it is YESby default in iOS7.

you need to set it to NO if you want a solid black:

self.tabBarController.tabBar.translucent = NO;

Upvotes: 3

Related Questions