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
check in app delegate class there the methods applicationDidEnterForeground and applicationDidEnterBackground are available do your coding there
applicationDidEnterForeground
applicationDidEnterBackground