Discussion Forums  >  Plugins, Customizing, Source Code

Replies: 5    Views: 89

Skywalker
Apple Fan
Profile
Posts: 117
Reg: Dec 25, 2013
上海
1,670
01/12/14 03:10 AM (11 years ago)

how to change the color of navbar of iphone5?

in iphone4/4S, the navbar is black, look great, but when I simulate it in iphone5, it's white.. Doses anybody know how to change the color of the navbar, in app control panel, it doesn't work... Regards, Skywalker
 
Absentia
buzztouch Evangelist
Profile
Posts: 960
Reg: Oct 20, 2011
Alaska
20,600
like
01/12/14 03:26 AM (11 years ago)
Did you set the navigation bar color in the "Themes" section of the control panel? You should try setting it there if you haven't...that's where I set it and it's working perfectly for me
 
Skywalker
Apple Fan
Profile
Posts: 117
Reg: Dec 25, 2013
上海
1,670
like
01/12/14 03:28 AM (11 years ago)
yes, I already set it to #000000, and it still shows white, this just happens in iOS7 situation....
 
Absentia
buzztouch Evangelist
Profile
Posts: 960
Reg: Oct 20, 2011
Alaska
20,600
like
01/12/14 03:30 AM (11 years ago)
Ok, sorry if this is a stupid question, but are you positive that the app is refreshing after you make the changes? I don't understand why it's working perfectly for me and not for you...hmm
 
Skywalker
Apple Fan
Profile
Posts: 117
Reg: Dec 25, 2013
上海
1,670
like
01/12/14 03:33 AM (11 years ago)
yes, I update the app so many times.... thanks anyway, Absentia,,,, maybe there's some wrong settings in my situation...
 
Absentia
buzztouch Evangelist
Profile
Posts: 960
Reg: Oct 20, 2011
Alaska
20,600
like
01/12/14 03:48 AM (11 years ago)
don't give up yet! We'll get this figured out - Ok, I don't know if you're comfortable doing a little hacking...if not, get ready to do some :D It's a lot easier than you might think Do you know how to use the Xcode search function? It's the little magnifying glass above the folder view -- here is a screenshot of where to find it -- https://www.dropbox.com/s/2pvcdlzh3migcdo/Screen%20Shot%202014-01-12%20at%201.39.03%20AM%202.png -- click that magnifying glass, then type the following EXACT text into the search box -- ///set the nav bar background color... Click on the result, and it will take you to the block of code shown in this screenshot - https://www.dropbox.com/s/sdhrl0lh2esasde/Screen%20Shot%202014-01-12%20at%201.39.03%20AM.png Replace the following block of code ----- ///set the nav bar background color... if(iosVer > 6){ [[self.navigationController navigationBar] setBarTintColor:[BT_viewUtilities getNavBarBackgroundColorForScreen:self.screenData]]; }else{ [[self.navigationController navigationBar] setTintColor:[BT_viewUtilities getNavBarBackgroundColorForScreen:self.screenData]]; } with this block of code ----- ///set the nav bar background color... if(iosVer > 6){ [[self.navigationController navigationBar] setBarTintColor:[UIColor blackColor]]; }else{ [[self.navigationController navigationBar] setTintColor:[UIColor blackColor]]; } That should do it! Let me know if you get stuck on anything
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.