I am working an app where lock option is included.My app starts with passcode screen.If I enter correct code then it navigates to next screen.If I dont use the app for long time it goes to sleep mode.When the user wants to run the app now, the passcode screen should appear and the user has to enter the code again.Is it possible?Is there any tutorial for this?Please dont mind to post the related code if you have done it.Thanks in advance.
Share
Yes ofcourse it is possible. You must open the screen in a method called
applicationDidBecomeActivein your Application Delegate. This method is called every time the application is opened from background.So whenever the user starts the already running app, this method will be called and from this you can first show the Password screen, and after that the respective screen.