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/
精彩评论