开发者

Difference between iPhone and iPad applicationDidEnterBackground

I have an iPhone app and an iPad app which have an iden开发者_JAVA技巧tical code base (other than the xib files being different for each platform). In the app delegate of each app, I have NOT overridden the applicationDidEnterBackground method.

When I run the iPad application, then press the home button, if I touch the application icon the app comes up right where it left off (same screen, etc).

When I run the iPhone application, then press the home button, if I touch the application icon the app will start up as if it were not running.

Both show to be running if you double-click the home button before touching the application icon again. The only difference is in the behavior of the iPhone app.

I would like the iPhone app to behave like the iPad app (continue running and not restart), but I cannot seem to find any difference that would prevent it from working like the iPad version.

Thanks in advance for your help!


You probably also have different Info.plist files for the two apps. Check whether the iPhone version has UIApplicationExitsOnSuspend set to YES.


The iPhone 3G always restarts apps, newer devices can restore apps from background.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜