Home Tutorial Iphone Examples UINavigationbar barStyle

 
 

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

Related Tags for UINavigationbar barStyle :


Ask Questions?

If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.

Ask your questions, our development team will try to give answers to your questions.