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
Post a Comment