Home Tutorial Iphone Examples UINavigationbar barStyle

 
 

Share on Google+Share on Google+
UINavigationbar barStyle
Posted on: April 22, 2010 at 12:00 AM
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

Advertisement

Related Tags for UINavigationbar barStyle :


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.

Posted on: April 22, 2010

Recommend the tutorial

Advertisements Advertisements
 

 

 

DMCA.com