开发者

How can I programatically close an iPad app?

When I press the Home button it doesn't fully close, but resides i开发者_StackOverflow社区n memory. I would like to restart an app from scratch and not keep its latest state.

How can I programatically close when the home button is pressed?


To get your app to close when the home button is pressed you need to add an entry for UIApplicationExitsOnSuspend to your Info.plist. This causes the app to revert to pre-4.0 behaviour which is as you describe.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜