From the framework, is one of these methods called at app-close?
I want to change it to new the App/Demo object in "- (void)go" and then I will need to delete this object at termination rather than have it auto-destroyed as it is now as a member of AppDelegate.
As a side question, is it allowed for my app to run ANY init code in main() or does it HAVE to go in go() to let iOS work right?
[iOS] Which OBJ-C method is called at app-termination?
-
d000hg
- Goblin
- Posts: 257
- Joined: Tue Sep 02, 2008 9:41 pm
- x 1
-
masterfalcon
- OGRE Retired Team Member

- Posts: 4270
- Joined: Sun Feb 25, 2007 4:56 am
- Location: Bloomington, MN
- x 126
Re: [iOS] Which OBJ-C method is called at app-termination?
applicationShouldTerminate will be called when your app closes. The UIApplicationDelegate class describes all methods that you can override for events.
You could put code in main but it'll probably be best to have it in go.
You could put code in main but it'll probably be best to have it in go.