Shut down iPhone in simulator

Aravind picture Aravind · Mar 24, 2011 · Viewed 9k times · Source

This might seem like a strange question, but can I actually shut down the iPhone and restart it in the iPhone simulator? I want to do this to see if my settings are saved and reloaded when the app is relaunched AFTER shutdown.

Thanks

Answer

Xiao picture Xiao · Mar 24, 2011

Yes. Press Command+Q to quit the simulator.

This will close all the apps running in the simulator.

Pressing the home button only returns to the home screen without quitting the apps(ios 4 or later) because of multitasking.

You can also double tap the home button, click and hold on the icons at the bottom of the screen till a red circle appear, and click on the red circle to close the running app.