ios - killing iPhone app due to wrong version -


i show alert users must update app if version no longer supported , kill application, i've read in here many answers saying using exit(0) or [[nsthread mainthread] exit] may cause app refused in app-store non-standard interface.

i have several application have feature i'm wondering right way achieve above task

if ([requiredversion compare:actualversion options:nsnumericsearch] == nsordereddescending) {// actualversion lower requiredversion     ??? } 

if app uses crashlytics crash logging service, can use function provide purpose.

[[crashlytics sharedinstance] crash]; 

keep in mind killing own app frowned upon, etc.


Comments

Popular posts from this blog

javascript - How to synchronize the Three.js and HTML/SVG coordinate systems (especially w.r.t. the y-axis)? -

javascript - How do I find how many occurences are there of a highlighted string, and which occurence is it? -

java - Reading data from multiple zip files and combining them to one -