0

I tried to match the color in status bar to my navigation bar color

I added "View controller-based status bar appearance" with NO to Info.plist And added

[[UIApplication sharedApplication] setStatusBarStyle:UIStatusBarStyleLightContent];

to AppDelegate.m didFinishLaunchingWithOptions but still not work

Example status bar like   NavigationBar color

My app

  • Hey look I found the same - http://www.appcoda.com/customize-navigation-status-bar-ios-7/ – Kampai Dec 19 '14 at 12:14
  • The status bar only has options to be Light (white) or Dark (black) content. If you made it the same color as your Navigation Bar, then you wouldn't be able to see it... – c_rath Dec 19 '14 at 12:17
  • How about setting `titleTextAttributes` - http://stackoverflow.com/questions/7810563/how-do-you-use-settitletextattributesforstate-in-uibaritem/25382956#25382956 – Kampai Dec 19 '14 at 12:17
  • Are you looking for `setBarTintColor:` of the appearance proxy of `UINavigationBar`? The status bar will adjust to the navigation bar on iOS7. – Krumelur Dec 19 '14 at 12:39
  • I don't use UINavigationBarController I added only Navigation Bar from storyboard to the view – user1569766 Dec 19 '14 at 12:44
  • You can make the self.view.backgroundColor = navigationbar color and make the navigation bar non translucent – Suhit Patil Dec 19 '14 at 12:50
  • But is change the view to color and I want only to change the background status bar color – user1569766 Dec 19 '14 at 12:53
  • yes but it will give that look similar to the iOS7 image – Suhit Patil Dec 19 '14 at 12:56
  • Thanks! but I want only change the status bar background like HandBook app.But thanks for your help! – user1569766 Dec 19 '14 at 13:04

0 Answers0