I have a navigation project that only has a TableView. By default, I could see the navigation bar there when the application started. I want to change the style of the navigation bar to the same as if we saw in IB, there is one that is called "Top bar" and has the style "Black navigation bar" (which shows the black top navigation bar, but there will be some gray shade). I want the same in my navigation bar now, and not any other color or style. How can I fix this?
Note:
I used "self.navigationController.navigationBar.barStyle = UIBarStyleBlack;" but it shows the navigation bar in completely black. I do not want this, I need some kind of gray shade of black, similar to the "Top Bar", which has a "Black Navigation Bar".
I tried adding a color cast to the above, for example "self.navigationController.navigationBar.tintColor = [UIColor grayColor];" but I watch the same black shows in the navigation bar.
I tried "navigationBar.barStyle = UIBarStyleBlackTranslucent;" but it does not fit and show in the status bar properly. Instead, it overlaps the (hidden) half of black with the status bar, and shows half of the black outside.
Can anyone teach me?
Getsy