best way to terminate app

Discussion in 'iOS Development' started by gojohnnyboi, Jan 27, 2009.

  1. gojohnnyboi

    gojohnnyboi Well-Known Member

    Joined:
    Jan 25, 2008
    Messages:
    3,339
    Likes Received:
    55
    i know that UIApplication has(or used to, i haven't checked 2.2 headers yet) the -terminate function, however since it's not available publicly from apple in teh SDK headers, do you think it would be better to use that, or the old faithful exit(0);

    =]
  2. Chicken

    Chicken Retired Moderator

    Joined:
    Feb 17, 2008
    Messages:
    2,494
    Likes Received:
    7
    Device:
    iPhone 5S
    I'd play it safe with the exit(0);
  3. Gman4354

    Gman4354 Member

    Joined:
    May 19, 2008
    Messages:
    718
    Likes Received:
    0
    Device:
    iPhone 4 (Black)
    Code:
    exit (0);

Share This Page