Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
出于安全目的,我想在应用程序后台运行后显示用户 ID/密码视图。
我应该如何实施?我应该使用- (void)applicationDidEnterBackground:(UIApplication *)application吗?
- (void)applicationDidEnterBackground:(UIApplication *)application
我不知道安全原因,但正如我在两者中测试的那样, - (void)applicationWillResignActive:(UIApplication *)application并且 - (void)applicationDidEnterBackground:(UIApplication *)application 这些都不能在应用程序期间显示 UIComponent 已被辞职。可能是本地通知可以帮助您解决此问题,但这些也无法完全按照您的意愿行事。
- (void)applicationWillResignActive:(UIApplication *)application