While creating UINavigation, NavigationController provides us number of properties to customize it. And "barStyle" is one of them.
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.