iPhone:How to make navigation top bar style to same like "Black Navigation Bar" programmatically?
Posted
by
Getsy
on Stack Overflow
See other posts from Stack Overflow
or by Getsy
Published on 2010-04-29T21:49:25Z
Indexed on
2012/06/09
22:41 UTC
Read the original article
Hit count: 230
iphone
I have a Navigation project which has only a TableView. By default, i could see the navigation bar there when running the application. I want to change the navigation bar style to same like if we see in I.B there is one called "Top Bar" which has "Black Navigation Bar" style (Which shows Black navigation top bar but some kind of Gray shade will be there). I want the same in my navigation bar now, not any other color or style. How do i fix it?
Note: 1. I used "self.navigationController.navigationBar.barStyle = UIBarStyleBlack;" , but it shows the navigation bar in utter black color. I don't want that, i want some kind of Gray shade in black, similar to "Top Bar" which has "Black Navigation Bar".
I tried some tint color addition to the above, like "self.navigationController.navigationBar.tintColor = [UIColor grayColor];" but i observe the same utter black shows in navigation bar.
I tried "navigationBar.barStyle = UIBarStyleBlackTranslucent;" but it doesn't fit and show with status bar properly. Instead it overlaps(hidden) half black with status bar and half black shows outside.
Could someone teach me?
Thank you.
© Stack Overflow or respective owner