IOS end application?

Welcome to our brand new Clickteam Community Hub! We hope you will enjoy using the new features, which we will be further expanding in the coming months.

A few features including Passport are unavailable initially whilst we monitor stability of the new platform, we hope to bring these online very soon. Small issues will crop up following the import from our old system, including some message formatting, translation accuracy and other things.

Thank you for your patience whilst we've worked on this and we look forward to more exciting community developments soon!

Clickteam.
  • Hi All,

    I'm working on my first IOS conversion, having little experience with Apple devices, I understand that "end application" doesn't work as it would on other OSes, my question is, how do I get back to the home screen from the app? :)

    ---------------------------------------

    Further reading has shown its down to the user to press their home button or swipe a particular way, bottom line (for anyone else with this query), remove the exit button from the game completely :)

  • If CT add it, or you use an ext, this can work:

    Code
    // home button press programmatically
    UIApplication *app = [UIApplication sharedApplication];
    [app performSelector:@selector(suspend)];

    You can also set UIApplicationExitsOnSuspend property in the application's plist to true, inside the xcode project, so when user (or code above) switches away, the app is closed, not paused. Of course, that means a slower start up for it later and a brief switch away and back will kill it.
    Actually, this setting is deprecated; iOS will freeze it anyway and only allow events to wake it, like timed background events to ask a website for new notifications.

    However, yes, Apple advise it is bad practice to quit programmatically, they intend the only deliberate jump out is one the user does by home button, and OS will tell app to truly exit if low on memory/battery/unused too long/etc.
    So it's best to just remove the quit button.

    Darkwire Software Lead Programmer (C++ & C#)
    Please login to see this link. | Please login to see this link. | Please login to see this link. | Please login to see this link.

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!