[solved] How/can an iOS app self-terminate

Discussion of issues specific to mobile platforms such as iOS, Android, Symbian and Meego.
d000hg
Goblin
Posts: 257
Joined: Tue Sep 02, 2008 9:41 pm
x 1

[solved] How/can an iOS app self-terminate

Post by d000hg »

Because I've ported my PC app to run on iOS, I still have the GUI menu-bar with an option "Exit". This just triggers a call to

Code: Select all

m_renderWindow->destroy();
It works on Windows/Mac because my message loop detects the RW is gone and exits. But obviously iOS has no such message loop - so my app simply stops rendering when I click 'exit'.

Is there a way to make an iOS app self-exit, or does that totally break the whole iOS UX?
Last edited by d000hg on Mon Oct 01, 2012 4:33 pm, edited 1 time in total.
User avatar
masterfalcon
OGRE Retired Team Member
OGRE Retired Team Member
Posts: 4270
Joined: Sun Feb 25, 2007 4:56 am
Location: Bloomington, MN
x 126

Re: How/can an iOS app self-terminate

Post by masterfalcon »

You'll have to double check the app guidelines but I would bet that having an exit button would get you rejected.
d000hg
Goblin
Posts: 257
Joined: Tue Sep 02, 2008 9:41 pm
x 1

Re: How/can an iOS app self-terminate

Post by d000hg »

Ah, I hadn't even found such clear rules existed. You're right - for anyone else finding this thread: http://stackoverflow.com/questions/7155 ... guidelines