I have a single view application (created from the iOS Template, nothing special)
There is 1 button:
- (IBAction)buttonWasTapped:(id)sender {
// Toggle status bar hidden property
BOOL hidden = [[UIApplication sharedApplication] isStatusBarHidden];
[[UIApplication sharedApplication] setStatusBarHidden:!hidden withAnimation:UIStatusBarAnimationFade];
}
I first load the app.

Then hit the button.

This is fine. I can work around the black space at the top. Next tap the button again and rotate to landscape. Then tap the button once more. It should look like this.

Finally rotate back to porttrait and tap the button.

In summay the issue is:
- Hide the status bar
- Swap the orentation (either to portrait or landscape)
- Show the status bar
- The status now bar covers the UI
I made a really hacky workaround, but I don’t like it and Im sure it will break if Apple sort it out.
- Has anyone seen this before?
- Is there a better solution?
I faced simmilar problems, my fix was on will rotate to orientation i would reshow the bar,
and hide it on did rotate to orientation (or hide it again using performselector with delay)
What is happening to you is that when the device rotates, the view takes all the available space, it will also fill the space that used to contain the status bar