While creating UINavigation, NavigationController provides us number of properties to customize it. And "barStyle" is one of them.
Properties for styling the UINavigationBar
- tintColor and
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;
self.navigationController.navigationBar.tintColor = [UIColor brownColor]
navController.navigationBar.barStyle = UIBarStyleBlackTranslucent;
Just copy and paste the code into your ViewDidLoad method to test it.
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.