We've had an issue reported where the status bar sometimes appears overlaid on our app after sleeping and waking the iPad. Our setup is as follows:
- Our app is landscape only (left and right)
- I've enabled guided access on the device
- I've enabled the sleep/wake button in guided access
- We recently updated our app and iPads to iOS7, and did not see this issue in iOS6
After investigating I've found the following when in guided access:
- With the device in landscape, repeatedly sleeping and waking (using the power button on the device) occasionally (~1 in 10) causes the status bar to appear in landscape orientation and then immediately fade
- Sleeping the device, then rotating to portrait, then waking, very consistently (~8 in 10) causes the status bar to appear in portrait orientation and stay on screen
I tried using the following, called from applicationDidBecomeActive:
[[UIApplication sharedApplication] setStatusBarHidden:YES withAnimation:UIStatusBarAnimationFade];
But this had no effect. I then tried calling this after a short delay, and then continually on a loop (both had no effect). Finally I tried to show the status bar and then hide, and was surprised to see 2 status bars - one being the one I can control programatically using the above code snippet, and another one being caused by waking in guided access.
Does anyone know a fix or work around for this? I've got no idea how I'd gain control over the 2nd status bar? (This sounds like a bug in iOS7 to me?).
Unfortunately guided access and sleeping devices are key to our company's workflow, and the status bar on the side has been reported to be causing issues with pressing buttons (plus of course it looks unprofessional!). The only work around we've found is to sleep and wake the device again, which usually fixes the issue, but isn't great.