ios - How to stop status bar appearing after waking in Guided Access on iOS7? -


we've had issue reported status bar appears overlaid on our app after sleeping , waking ipad. our setup follows:

  • our app landscape (left , right)
  • i've enabled guided access on device
  • i've enabled sleep/wake button in guided access
  • we updated our app , ipads ios7, , did not see issue in ios6

after investigating i've found following when in guided access:

  • with device in landscape, repeatedly sleeping , waking (using power button on device) (~1 in 10) causes status bar appear in landscape orientation , fade
  • sleeping device, rotating portrait, waking, consistently (~8 in 10) causes status bar appear in portrait orientation , stay on screen

i tried using following, called applicationdidbecomeactive:

[[uiapplication sharedapplication] setstatusbarhidden:yes withanimation:uistatusbaranimationfade]; 

but had no effect. tried calling after short delay, , continually on loop (both had no effect). tried show status bar , hide, , surprised see 2 status bars - 1 being 1 can control programatically using above code snippet, , 1 being caused waking in guided access.

does know fix or work around this? i've got no idea how i'd gain control on 2nd status bar? (this sounds bug in ios7 me?).

unfortunately guided access , sleeping devices key our company's workflow, , status bar on side has been reported causing issues pressing buttons (plus of course looks unprofessional!). work around we've found sleep , wake device again, fixes issue, isn't great.

- (bool)application:(uiapplication *)application didfinishlaunchingwithoptions:(nsdictionary *)launchoptions { [application setstatusbarhidden:yes]; } 

in apps plist file add row call "view controller-based status bar appearance" , set no


Comments

Popular posts from this blog

c# - How to get the current UAC mode -

postgresql - Lazarus + Postgres: incomplete startup packet -

javascript - Ajax jqXHR.status==0 fix error -