简体   繁体   English

当应用程序从锁定屏幕解锁到iOS中的应用程序屏幕时,回调函数是什么?

[英]What is the callback function when app unlock from lock screen to my app screen in iOS?

I thought it was viewWillAppear function, but it did not. 我以为是viewWillAppear函数,但事实并非如此。

Is not exist unlock callback function in iOS? 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 前两个在锁定时调用,其他两个在解锁时调用

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM