Hello all,
I am doing coding in cocoa touch.I want to close my application using command(syntax).I am see different command close,stop but it is not working.
Please learn to use the search. There is a way to do it in this thread. Note this uses an undocumented call: there is now official way in the SDK to do this...
As I said: it's an undocumented call. Therefore it's not in the headers. This warning is what any reasonable programmer would expect.
There is an obvious way to remove the warning via performSelector:. A good programmer would protect against the undocumented call changing by testing if the object responds to that selector before calling too...
I expected that having been pointed in the correct direction you could solve minor issues on your own.
That's not such a great idea as it will just kill your app dead right there. Using the call I mentioned above your app dies gracefully: all the normal app shutdown code gets called and the normal notifications get sent.