Share on Google+Share on Google+

UINavigationbar barStyle

Advertisement
While creating UINavigation, NavigationController provides us number of properties to customize it. And "barStyle" is one of them.

UINavigationbar barStyle

While creating UINavigation, NavigationController provides us number of properties to customize it. And "barStyle" is one of them.

Properties for styling the UINavigationBar

- barStyle
- tintColor and
- translucent

Using these styling properties, one can change the style of UINavigationBar item. But these properties can affect the button style on lying on it.

Now let's find out how to style the UINavigationBar using these properties.

UINavigationbar barStyle Opaque
self.navigationController.navigationBar.barStyle = UIBarStyleBlackOpaque;


UINavigationbar tintColor
self.navigationController.navigationBar.tintColor = [UIColor brownColor]

UINavigationbar translucent
navController.navigationBar.barStyle = UIBarStyleBlackTranslucent;

Just copy and paste the code into your ViewDidLoad method to test it.

Download Code

Advertisements

Posted on: April 22, 2010 If you enjoyed this post then why not add us on Google+? Add us to your Circles

Share this Tutorial Follow us on Twitter, or add us on Facebook or Google Plus to keep you updated with the recent trends of Java and other open source platforms.