robbieduncan
Aug 10, 2008, 04:29 PM
I've had a good look through the documentation but I can't find any way of doing what I want so here we go...
Is there any way to programatically terminate your iPhone app. I want to be able to kill the app if certain things go wrong (mostly parsing plists on startup). On the desktop we have the terminate: (http://developer.apple.com/documentation/Cocoa/Reference/ApplicationKit/Classes/NSApplication_Class/Reference/Reference.html#//apple_ref/occ/instm/NSApplication/terminate:) method of NSApplication, but I can't find a similar method in UIApplication.
Basically I want to be able to display and alert to the user explaining what has gone wrong (and suggest a reinstall to uncorrupt the file) and then terminate.
Any ideas?
Is there any way to programatically terminate your iPhone app. I want to be able to kill the app if certain things go wrong (mostly parsing plists on startup). On the desktop we have the terminate: (http://developer.apple.com/documentation/Cocoa/Reference/ApplicationKit/Classes/NSApplication_Class/Reference/Reference.html#//apple_ref/occ/instm/NSApplication/terminate:) method of NSApplication, but I can't find a similar method in UIApplication.
Basically I want to be able to display and alert to the user explaining what has gone wrong (and suggest a reinstall to uncorrupt the file) and then terminate.
Any ideas?
