0

Im hiding the status bar like this: UIApplication.sharedApplication().statusBarHidden = (Bool)

Now it hides it, but it also makes its bounds disappear, when it is hiding the mainViewcontroller's view frame is changing, its getting taller.

Is it possible to change the alpha for the status bar or something similar?

Arbitur
  • 38,684
  • 22
  • 91
  • 128
  • Can't you modify the frame of the mainViewController's view, or if using Autolayout, set a constraint towards Top Layout Guide? – mbo42 Dec 02 '14 at 10:22
  • It is also a NavigationViewController and its navigationbar shrinks also. Maybe I need to change my question but its actually the navigation bar I dont want to get resized. – Arbitur Dec 02 '14 at 10:27
  • What do you mean by NavigationBar shrinks? That it starts with a y position at 0 and with a height of 44 points? – mbo42 Dec 03 '14 at 10:54
  • When the statusbar is visible the navigigation is on screen at y: 20, but when the statusbar is hidden it goes to on screen y:0 – Arbitur Dec 03 '14 at 12:47
  • I said it shrinks because it looks like it shrinks in ios 7+ – Arbitur Dec 03 '14 at 12:47
  • Oh I see. Then I'm not sure if that's possible. I recommend you read the Human Interface Guidelines regarding the status bar. Found [here](https://developer.apple.com/library/ios/documentation/userexperience/conceptual/MobileHIG/Bars.html). – mbo42 Dec 03 '14 at 15:15

0 Answers0