Results 1 to 4 of 4
Discuss Programatically exiting application at the iPhone Developer Exchange - Hackint0sh.org; Hello all, This is an incredibly stupid and probably trivial question, but I was wondering ...
  1. #1
    Newbie Array

    Join Date
    Aug 2007
    Posts
    7
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    Default Programatically exiting application

    Hello all,

    This is an incredibly stupid and probably trivial question, but I was wondering how I could programatically exit my application. Thanks.



  2. #2
    Newbie Array

    Join Date
    Aug 2007
    Posts
    7
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    Default

    [self terminate];

  3. #3
    Rookie Array

    Join Date
    Jul 2008
    Posts
    14
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    Default

    exit(0);
    A little bit dirty perhaps...

  4. #4
    Newbie Array

    Join Date
    Apr 2008
    Posts
    5
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    Default

    if you use exit(int); normal practice is use 0 for normal termination (successful and expected), and to use 1 or any other positive integer 1-255 for exit due to error. (i.e. BASH coding - Exit Codes with Special Meanings

 

 

Similar Threads

  1. iphone 3gs not exiting recovery mode
    By DJMYNDZ in forum iOS 4.x (iPhone OS 4.x)
    Replies: 1
    Last Post: 02-11-2011, 09:09 PM
  2. Retrieve battery info programatically
    By madhudnpr in forum iPhone Developer Exchange
    Replies: 0
    Last Post: 11-18-2008, 04:56 PM
  3. programs Inexpertly exiting to home screen
    By phatfel in forum General
    Replies: 3
    Last Post: 11-21-2007, 02:07 AM
  4. 3rd party apps exiting upon clicking
    By zulu73 in forum iPhone "2G" (Rev. 1)
    Replies: 0
    Last Post: 10-26-2007, 12:35 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Powered by vBulletin®
Copyright © 2014 vBulletin Solutions, Inc. All rights reserved.
Search Engine Friendly URLs by vBSEO
(c) 2006-2012 Hackint0sh.org
All times are GMT +2. The time now is 06:57 AM.
twitter, follow us!