开发者

- (void)applicationDidEnterBackground:(UIApplication *)application

开发者 https://www.devze.com 2023-01-11 22:38 出处:网络
I inserted an NSLog and a UIAlertView into this function call. Whe开发者_高级运维n I pressed the home button, the NSLog executed, but not the UIAlertView. Why is that?Try doing it in applicationWillRe

I inserted an NSLog and a UIAlertView into this function call. Whe开发者_高级运维n I pressed the home button, the NSLog executed, but not the UIAlertView. Why is that?


Try doing it in applicationWillResignActive (not tested). It gets called before applicationDidEnterBackground. But I think you should rethink throwing up an alert box for the 5 secs before iOS kills it.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号