How to programmatically quit iPhone app?

My app needs to quit itself. Is there any method available in the SDK? Couldn't find one so far...

I found this on the web some months ago, helped me with the same problem. Maybe this gives you a good start:
[[UIApplication sharedApplication] performSelector:@selector(terminateWithSuccess)];

Similar Messages

  • How do I install iPhone apps on my mac?

    How do I install iphone apps on my mac?

    You don't. iPhone apps are for the IOS operating system and can only be installed on iPad, iPhone, iPod touch.

  • How will Find my iPhone app help me track my iphone if someone has disabled the location services which doesnt require an unlock code?

    How will Find my iPhone app help me track my iphone if someone has disabled the location services which doesnt require an unlock code?

    You can't, and the same if the thief turms off the phone.
    What to do if your iOS device is lost or stolen
    Reporting a lost or stolen Apple product

  • How to force quit an app in IOS 7.0.4 on iPad 3 ?

    I have searched on this topic, and see repeated references to the double click HOME button, then hold the particular app card, and swipe "up and away".
    This does NOT work on my device. 
    I can double-click the HOME button, and see the app switcher row at the bottom, showing the running (or suspended) apps.  Holding a given card turns it gray, but then nothing else happens.  If I move as to swipe, the card simply un-grays -- there is no movement or any other action.  It will allow me to swipe left and right, but not up.
    I have no other issues with the iPad and this release, that I know of.
    Thank you.

    iPad Frozen? How to Force Quit an App, Reset or Restart Your iPad
    http://ipadacademy.com/2010/11/ipad-frozen-how-to-force-quit-an-app-reset-or-res tart-your-ipad
     Cheers, Tom

  • How do you close iPhone apps that don't seem to have a close button?

    How do I ensure that an application is fully closed out?
    IM+ is an example but I would like to know in general. IM plus somehow runs in the background but sometimes I want to disable it completely I"m not sure how. Same goes for facebook or safari even. My concern is that I thnk the phone slows down when too many things have been opened. Is there a way to fully force all applications closed short of rebooting?
    Thanks.

    3rd party apps do not run in the background on the iPhone. Apps like IM+ that 'seem' to run in the background do not - your chat account is kept active by the server (not the phone) and/or push notifications via Apple's push notification server are used to alert you that there is server-side activity for the app.
    So, you would just need to exit the app, and if you want to turn off notifications, use Settings > Notifications.
    Also, note that you can force-quit an app - press and hold the sleep/wake button until you see the power-off slider, then release the sleep/wake button and immediately press and hold the home button for ~6 seconds, until you're returned to the home screen.

  • HT203421 How do I get iphone apps in the mac app store? Also, my apps from my iphone will not sync to my mac. Why is this?

    I've had my iphone 4 for a couple years, but I've recently purchased a new macbook air. For some reason, I do not have the option of syncing my apps from my iphone to itunes. I am currently running ios 6 on my phone, but I don't want to update until the apps are backed up to the computer. How do I resolve this? Also, is there a way to download and/or update iphone apps from the mac app store?

    Connect the iPhone and iTunes will open automatically. Then, go to iTunes menu (on the menu bar) > Devices > Transfer purchases, and all the content downloaded from the App Store and the iTunes Store will be transferred to the MacBook. Note that in iTunes 11 you can choose the iPhone at the top right part of your iTunes window.
    The Mac App Store is used to download Mac OS X apps, and the App Store is used to download apps for iPod touch, iPad and iPhone. You can't download apps for iPhone from the Mac App Store. Instead, you can download them from iTunes or from the iPhone

  • How to restore my iPhone apps into new iTunes library ??

    I formated my PC recently and forgot to backup my iTunes library,when new login to iTunes on formated PC, the "Apps" page still can see all my Iphone Apps that installed before but all the apps icon on right hand side show in non active icon, when I tick the "Sync Apps" on the top left corner, the box "Are you want to Sync apps ? All existing apps and their data on the iphone " x's iphone" will be replace with apps from this iTunes library" , means if i click "Sync Apps" all my previous apps will gone !!! Anybody know how to restore the apps from my iPhone to iTunes library, so i can continue to Sync new apps while maintain my old apps.
    Thanks You Very Much

    Alright... i get the answer already ..... just follow the link below :
    http://support.apple.com/kb/HT1848?viewlocale=en_US
    for my case, after Authorize Computer just click "file" from iTunes and select [Transfer Purchases from "x's iPhone"] , the iTunes will start transfer your iPhone apps to iTunes library. simple ...

  • How to use Find Iphone app to track my child and they not track me?

    Just bought my kid an Iphone 4S, just like mine:)  I want to use "Find Iphone" app to track him occasionally. AND I want to use the Icloud to see what pictures he is taking and what websites he is visiting.   However, I don't want him to track me neither do I want him to be able to access my information over the Icloud. 
    How is this possible? 

    http://www.gadgettrak.com/products/iphone/
    Basic troubleshooting steps  
    17" 2.2GHz i7 Quad-Core MacBook Pro  8G RAM  750G HD + OCZ Vertex 3 SSD Boot HD 
    Got problems with your Apple iDevice-like iPhone, iPad or iPod touch? Try Troubleshooting 101

  • How to see the iPhone Apps top charts on an iPad?

    How can I view the top charts for the iPhone Apps on my iPad in the AppStore? You were able to do this on iOS 5  by pressing the "Show iPhone Apps" button on the bottom when you scrolled down.  Though ever since iOS 6 I just couldn't find a way/that button.
    Device: IPad Mini
    iOS: 6

    Not possible.
    FYI, the vast majority of those background apps are not open.  More info on iOS multitasking...
    http://support.apple.com/kb/ht4211
    http://whenwillapple.com/blog/2010/04/19/iphone-os-4-multitasking-explained-agai n/
    http://www.macworld.com/article/1164616/how_ios_multitasking_really_works.html
    http://speirs.org/blog/2012/1/2/misconceptions-about-ios-multitasking.html

  • How do I backup iPhone app data?

    How do I backup my iPhone's App Data to iTunes without having it transfer all my apps to iTunes?

    Hello bjsterilite,
    I read your post, and it sounds as though you'd like to learn how to backup your iPhone. You can choose to exclude certain data, and not sync apps to iTunes. Here is an article which explains the process in greater detail:
    Should I use iTunes or iCloud to back up my iPhone, iPad, or iPod touch? - Apple Support
    Thank you for contributing to Apple Support Communities.
    Cheers,
    Bobby_D

  • How to re-install iPhone apps that have been deleted on the iPhone?

    Hi,
    I've installed a number of iPhone apps onto my iPhone via iTunes. I've then deleted some of them on my iPhone. I now want one of the deleted apps back. It's still visible in my iTunes Applications, as well as in Music/iTunes/Mobile Applications.
    How do I get it re-installed into my iPhone? So far I've tried:
    - redownloading the app from the iTunes store, and selecting Buy and pressing OK to re-install
    - double-clicking on the .ipa file in Music/iTunes/Mobile Applications
    After each of the above I resync my iPhone. But still the app won't re-install on my iPhone.
    thank you,
    ...ben

    Yeah, figured it out, and was just about to post what you said. But you were too quick. Thank you!
    ...ben

  • How to develop a iphone app

    what do I need to ready for developing a iphone app?

    Apple Developer
    Mac Developer Program - Apple Developer

  • How to quit iPhone app when placing call?

    At a certain point my app places a call by invoking the phone app via tel:// . After the call is finished the iPhone relaunches my app.
    Is there a way to cancel/stop/prevent the relaunch?

    If you created a view based application, you should also see <app name>ViewController sources. In the implementation file, you uncomment the viewDidLoad method and then do what you need.

  • How do I use iPhone apps on my Macbook Pro?

    Okay, so I have always wondered if there are any apps that are used regularly on iPhones that can be downloaded onto my Macbook Pro. I tried to find an answer to this and discovered this page http://support.apple.com/kb/HT2519?viewlocale=en_US&locale=en_US which explains there is a way to download previous purchased apps on the computer so I followed the steps and downloaded some. Now this may be a stupid question, but does this just mean that I can now transfer these apps onto another device from my macbook, or can I actually use these apps in some way on a large, macbook monitor. If so how do I do this, and if not- I think it would be a brilliant idea for apple to make this an option in the future!
    Thanks for any help, I'm still working out some of the basics as a first time Mac user!

    hi
    you cannot, for example:
    I had to buy a separate Pages, Numbers app on my iPad...
    so there is an app for ipad/iphone/ipod and another for Macs....
    so the answer is no...

  • How to get an iPhone app to implement A2DP?

    I use a Plantronics Voyager Pro BT headset, and just found out the hard way that it doesn't support A2DP, so I cannot hear any iPhone audio on it other than phone calls. I understand that there is an app for jailbroken phones (Bluetooth Mono for iPhone) that can implement that functionality, and there is a legal app for the Droid that does the same thing.
    There must be a large market for people who'd like to do this with their BT headsets. How does one go about requesting a legal app like that? From whom?
    BC

    the problem with A2DP is that when a Headset that supports A2DP is connected to the iPhone 4 no sound come through the headset for Texts or email.
    Here is what I have found...
    I have my iPhone set to play sounds and vibrate for alerts
    I have ensured the phone is not on Silent via the side switch
    When my iPhone is connected via bluetooth to another headset that doesn't support A2DP (e.g. BlueAnt V1) the phone will sound an audible alert via the phone speakers when an email or text message is received as well as vibrate. Additionally no sound is heard through the headset.
    When my iPhone is connected via bluetooth to my new Voyager Pro+ (supports A2DP)the phone does not sound an audible alert via the phone speakers when an email or text message is received. The phone only vibrates. Also no sound is heard through the headset.
    It seems to me that the headset goes into standby and email tone is too short.
    By the time the headset responds to the sound, the sound is already over.
    I could change the text tone to something longer, but the new sounds are obnoxious and the standard tri-tone is too short.
    If there was a way to allow the iPhone's internal speakers to play sounds while on a A2DP headset (like an override switch) it would be ideal.
    Message was edited by: picardsm

Maybe you are looking for