hig - Is this a valid justification for quitting an iPhone app programatically? -
i know question has been asked many times , have gotten link answer apple: http://developer.apple.com/library/ios/#qa/qa1561/
however, recently, met case below. don't see other options except using 'exit(0)' directly.
i have app can collect digital data camera or microphone of iphone. designed button reads 'save , exit', because common scenario of app.
without capability exit app programatically, can have stupid 'save' button. users have click twice ( 1. 'save' button, , 2. 'home' button ) same result - a.k.a these 2 actions in sequence together.
then realized, maybe, flaw of design. hence changed way.
i removed 'save exit' button and, instead, added note in bottom says 'use home button save & exit'. tried catch quitting signal users' action , save in prior.
by doing this, user can use native home button 'save , exit'.
however, solution not perfect.
if app takes long save data, there's still chance ios kill app after user hits 'home' button. user can lost data without notice!!!
if can exit programatically, can try 'save' first. if 'save' fails, have plenty of time inform user or remediation work needed.
do think valid justification use 'exit(0)' in app without being rejected?
no, doubt apple let have "save , exit" button. goes against platform conventions , directly contradicts apple's hig.
under circumstances think you'll have data can't saved in amount of time ios gives app clean up? have measured , found problem?
Comments
Post a Comment