2

Our iOS app has its own passcode screen which is displayed to the user each time the application loads.

An additional requirement is that the passcode screen should be displayed if the user locks the screen. Initially I have used the applicationWillResignActive method within the app delegate to set the passcode view as a modal. I'm setting it on resign rather than applicationDidBecomeActive so that when iOS makes our app visible again you don't see a quick switch between views.

This works fine for when the user locks the screen but resignActive is also called when an SMS alert is recieved, which means that even if the user dismisses the notification they are asked to enter their passcode again.

Is there a way to work out if the screen has been locked, so I can respond specifically to that event?

Dan Rowlands
  • 1,382
  • 12
  • 18

0 Answers0