[ACCEPTED]-How to quit itself in Objective-C application?-protocol-handler
Accepted answer
You don't have to launch
open
usingNSTask
...open
just 3 calls into Launch Services, some of whose functionality 2 is directly available from NSWorkspace.To quit, you 1 just call
[[NSApplication sharedApplication] terminate:nil]
. SeeNSApplication
documentation.
This has been answered here: Proper way to exit iPhone application? however you 5 should also take a look at August's answer. Although 4 it's not the accepted answer, it has been 3 voted higher and it also follows Apple's 2 set standards since Apple advises against 1 force quitting iPhone applications.
Source:
stackoverflow.com
More Related questions
Cookie Warning
We use cookies to improve the performance of the site. By staying on our site, you agree to the terms of use of cookies.