开发者

Restart app when coming out of background

开发者 https://www.devze.com 2023-02-05 21:27 出处:网络
I\'ve seen many news apps do this, where when you click on the app (on the iphone desktop) that has been in background mode, it starts again by showing a loading screen, etc.It basically looks like it

I've seen many news apps do this, where when you click on the app (on the iphone desktop) that has been in background mode, it starts again by showing a loading screen, etc. It basically looks like it starts again like it was never in background mode (I think what is called "refreshing开发者_如何学编程 the user interface). Does anybody know how you do this? I assume this is call from the app's delegate applicationWillEnterForeground or applicationDidBecomeActive method.


The application probably never went into the background. Try adding this to the Info.plist file.

UIApplicationExitsOnSuspend=YES

As a boolean value.

0

精彩评论

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