iPhone UIApplicationExitsOnSuspend ineffective
UIApplicationExitsOnSuspend does not force my app to exit. I have cle开发者_StackOverflow中文版aned the target, removed the app, rebuilt, and reinstalled many times.
I really need my app to exit.
Did you link against SDK 4? This key is only effective in this case.
Are you sure your application is still active ?
You will always see your application when double tapping the home button : this is a list of the recently used apps, not a list of currently running apps
Put a breakpoint in the applicationWillTerminate: method of your app delegate, if it stops in this method it means your is killed.
Hope this helps, Vincent
Sometimes when people type "set it to true in the plist file" what they really mean is:
- Add "UIApplicationExitsOnSuspend" as a key in the info.plist file
- right-click on UIApplicationExitsOnSuspend and set "type" to boolean
- click the checkbox that then appears
TRUE or YES in a string format does NOT work in the info.plist file.
BOOLEAN is the only flag that enables it.
Try this it helps you
in info.plist, add "Application does not run in background" = "YES".
thats it.now you open second time same application.It open with start page.
Thanks
精彩评论