Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

Make your own iPhone apps
and run them live!
(free)

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Development

Reply
 
LinkBack Thread Tools Display Modes
Old 02-01-2011, 08:40 PM   #1 (permalink)
Registered Member
 
Join Date: Jul 2009
Location: North America
Posts: 53
shimmy is on a distinguished road
Default Force restart of app during debugging on device without plugging into XCode?

Hi

Is there any way to force the termination/restart of an app that I'm building, while testing it on the device without having to plug it in to the computer or turning off the whole iOS device?

ie. I uploaded my app-in-progress to the device, and it ran into a bug like a view appears on screen that shouldn't or a button is missing. Because the app is held in the background, when I exit the app and reopen it comes back to the same place with the same bug. I want to be able to reset the application without having to plug it in or restart the device. Is there any way to do this? If not, then don't you think Apple should implement it? The whole background apps thing is really nifty, but its a pain in the butt for developers who don't need that kind of functionality (yeah yeah I know there are work arounds)
shimmy is offline   Reply With Quote
Old 02-01-2011, 08:47 PM   #2 (permalink)
Registered Member
 
Join Date: Dec 2010
Location: Mission Viejo, CA
Age: 30
Posts: 271
Brandt is on a distinguished road
Default

In your plist file add "Application Exits On Suspend" UIApplicationExitsOnSuspend

Also you can double tap the home button. Hold your finger on your app. Hit the X. Then click home button again.
Brandt is offline   Reply With Quote
Old 02-01-2011, 08:48 PM   #3 (permalink)
Emphasizing Fundamentals
 
BrianSlick's Avatar
 
Join Date: Jul 2009
Location: NoVA / DC Area
Age: 36
Posts: 7,990
BrianSlick has a spectacular aura about
Default

You don't know how to kill apps?

Double-tap home button, find desired app, press-and-hold.
__________________
BriTer Ideas LLC - Professional iOS App Development. Available for hire.

SlickShopper 2 | Free NSLog utility | Leave a PayPal donation.

Are you a newbie? Things you should read:
Definitive Guide To Properties | UITableView Series | Guide To Troubleshooting | Model Object Overview

Do you sit at a desk all day? Walk instead! Follow along with my treadmill desk adventures.
BrianSlick is offline   Reply With Quote
Old 02-01-2011, 09:01 PM   #4 (permalink)
Registered Member
 
Join Date: Jul 2009
Location: North America
Posts: 53
shimmy is on a distinguished road
Default

OH, thanks
I knew you could do that, but I didn't know that that kills the apps (thought it just removes them from the recently opened list.) Fantastic!
shimmy is offline   Reply With Quote
Old 02-01-2011, 09:48 PM   #5 (permalink)
Reading the Documentation
 
baja_yu's Avatar
 
Join Date: Sep 2010
Location: 45.255019,19.844908
Posts: 5,414
baja_yu has a spectacular aura about
Default

Quote:
Originally Posted by BrianSlick View Post
You don't know how to kill apps?

Double-tap home button, find desired app, press-and-hold.
And interestingly, that doesn't kill it when you run from Xcode. If you try it you'll see that the debugger is still running, and when you reopen the app from the home screen it's still right where it was.
baja_yu is offline   Reply With Quote
Reply

Bookmarks

Tags
debug, debugging, device testing, reset, terminate

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



» Advertisements
» Online Users: 367
14 members and 353 guests
7twenty7, blasterbr, Clouds, dre, EvilElf, jeroenkeij, jimmyon122, Mah6447, Morrisone, n00b, pungs, Sami Gh, stanny, toon4413
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,667
Threads: 94,121
Posts: 402,900
Top Poster: BrianSlick (7,990)
Welcome to our newest member, host number one
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 03:47 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0