开发者

Shut down iPhone in simulator

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


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.


As of XCode 9, the best way to close a single simulator is using the Cmd + W shortcut, or going to File -> Close Window.


If your'e xcode 9.You can now shutdown the simulator by long-pressing the power button.

Shut down iPhone in simulator

Shut down iPhone in simulator


To close/shutdown one simulated device without closing other simulations, select the device you want to shut down then go to "File" and choose "Close Window".

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜