Close the application in titanium (iOS)

Which is equivalent for iOS:

 win.close();
 var activity = Titanium.Android.currentActivity;
 activity.finish();

Thank!

+4
source share
2 answers

No (in titanium). In addition, Apple clearly discourages this:

“IOS app never displays Close or Quit” - Apple HIG p27 https://developer.apple.com/library/ios/documentation/userexperience/conceptual/mobilehig/MobileHIG.pdf

There are existing SO answers regarding this:

On iPhone there is no concept of exiting the application. The only action this should lead to the fact that the application will cease to touch the "Home" button on the phone, and that no developers have access.

Apple, . "", , . , .

SO : iPhone?

, ( ), , [[NSThread mainThread] exit].

+6

iOS, Titanium SDK. , :

-(id)example:(id)args
{
    // example method
    exit(0);
    return @"Application Exit";
}

, exit() iOS App Store.

+1

Source: https://habr.com/ru/post/1533198/


All Articles