uinavigationbar - iOS 7 navbar colours not showing properly on iPhone 4 -


my navigation bar colours appear in ios 7

deploying ios 6.0, if system version ios 7.0 or later, of navigation bar colouring doesn't display on iphone 4. works fine in iphone 5.

here's how doing it:

if (system_version_greater_than_or_equal_to(@"7.0")) {     self.edgesforextendedlayout = uirectedgenone;     [self.navigationcontroller.navigationbar setbartintcolor:[uicolor bluecolor]];     [self.navigationcontroller.navigationbar settranslucent:yes]; }   #define system_version_greater_than_or_equal_to(v)  ([[[uidevice currentdevice] systemversion] compare:v options:nsnumericsearch] != nsorderedascending) 

maybe last line problem (settranslucent) since have heard iphone 4 has problems translucency, i'm pretty sure set navbar translucent in ios 6 well. try getting rid of out next , update if fixes anything.

edit: looks bar colour disappears after dismiss presented view controller. doesn't screw on iphone 4.

get rid of [self.navigationcontroller.navigationbar settranslucent:yes]; , should work fine.

if want, can check device model (see here: determine device (iphone, ipod touch) iphone sdk)

and adjust view accordingly.


Comments

Popular posts from this blog

c# - How Configure Devart dotConnect for SQLite Code First? -

c++ - Clear the memory after returning a vector in a function -

erlang - Saving a digraph to mnesia is hindered because of its side-effects -