开发者

How can I make an app restart every time it is opened?

开发者 https://www.devze.com 2023-02-18 03:12 出处:网络
I have an app that lets say, shows the alphabet. Each time 开发者_如何学编程I start the app, I\'d like it to start at the letter A.

I have an app that lets say, shows the alphabet. Each time 开发者_如何学编程I start the app, I'd like it to start at the letter A.

Right now, I guess because of multi-tasking, the app starts wherever it left off.

Is there a good way to force it to start at the beginning each time?

Thanks.


There is a parameter to set in the Info.plist. Look for UIApplicationExitsOnSuspend

You can also setup your app delegate to handle the wake up as you want. Have a look at this http://www.cocoanetics.com/2010/07/understanding-ios-4-backgrounding-and-delegate-messaging/

0

精彩评论

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