ios simulator: how to close an app

2019-01-12 17:07发布

When you "run" the simulator from xCode, the app automatically launches, and then you can click the home button to suspend the app. What I want to do is close the app from within the simulator. So, how can this be done?

8条回答
在下西门庆
2楼-- · 2019-01-12 17:17

You can also do it with the keyboard shortcut shown under the simulator menu bar (Hardware-> Home).

The shortcut is ++H, but you need to hit H twice in a row for it to simulate the double press that shows the apps.

查看更多
祖国的老花朵
3楼-- · 2019-01-12 17:18

For closing (not quit) the running application in Simulator the keyboard shortcut is "shift+command+h".

查看更多
We Are One
4楼-- · 2019-01-12 17:19

I had a difficult time in finding a way in XCode 7.2, but finally I had found one. First press Shift+Command+ H twice. This will open up all the apps that are currently open.

Swipe left/right to the app you actually want to close. Just Swipe Up using the Touchpad while Holding the App would close the app.

查看更多
三岁会撩人
5楼-- · 2019-01-12 17:22

On the new iPhone X, the simulator was having issues with the mouse/finger gesture.

You can do a long press with the mouse and a close icon will appear. You can use the swipe up gesture as well to close the app.

close app on simulator

查看更多
Bombasti
6楼-- · 2019-01-12 17:24

Window / Show Device Bezels

And now you can see the real device, so double tap on HOME button and kill you app

查看更多
贼婆χ
7楼-- · 2019-01-12 17:32

To close the simulator in OS X, Just press Command+Q.

Hope it helps.

查看更多
登录 后发表回答