I thought it was viewWillAppear function, but it did not.
Is not exist unlock callback function in iOS?
The methods called when locking the device with your app currently in foreground are in order
-[MyAppDelegate applicationWillResignActive:]
-[MyAppDelegate applicationDidEnterBackground:]
-[MyAppDelegate applicationWillEnterForeground:]
-[MyAppDelegate applicationDidBecomeActive:]
The first two are called when locking, the others when unlocking
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.