如何在 iOS iPad 模拟器中调出 iOS 多任务栏
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/11247551/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
How to bring up the iOS multitasking bar in iOS iPad Simulator
提问by 5StringRyan
I'm trying to test start state of my application when it is "freshly" launched, and when it is launched from a multitasking state. On an iPad a user can double click on the Home button twice to bring up the multitasking bar, and then you can close all the applications you no longer want running.
我正在尝试测试我的应用程序在“全新”启动时以及从多任务状态启动时的启动状态。在 iPad 上,用户可以双击 Home 按钮两次以调出多任务栏,然后您可以关闭所有不想再运行的应用程序。
This used to be easy, previous versions of the Simulator actually had a home button, but now it doesn't. In order to go to the home screen you have to go to Simulator -> Hardware -> Home, and there isn't an option listed to simulate a double click of it.
这曾经很容易,以前版本的模拟器实际上有一个主页按钮,但现在没有。为了转到主屏幕,您必须转到 Simulator -> Hardware -> Home,并且没有列出模拟双击它的选项。
Am I missing something? Or is there no longer a way to kill applications that are running once they have started in the iPad Simulator without deleting them completely. I'd be great if I didn't have to push the application each time to my physical iPad every time I make a change to test this part of my application.
我错过了什么吗?或者不再有一种方法可以杀死在 iPad 模拟器中启动后正在运行的应用程序而不完全删除它们。如果每次我进行更改以测试我的应用程序的这一部分时,我都不必每次都将应用程序推送到我的物理 iPad,我会很棒。
回答by Dan F
If you're using the retina iPad simulator you will end up with the home-button-less version. Go to Hardware->Device->iPad and you'll get a simulator that has a home button you can double click.
如果您使用的是 Retina iPad 模拟器,您最终将获得无主页按钮的版本。转到硬件-> 设备-> iPad,您将获得一个模拟器,该模拟器带有一个可以双击的主页按钮。
You can also use the home button shortcut (default is cmd+shift+h) and double hit that and it will trigger the multitasking bar
您还可以使用主页按钮快捷方式(默认为 cmd+shift+h)并双击它会触发多任务栏
回答by Daniel
The home button is now hidden from the iPad simulator. However the home button may be triggered by the following command:
主页按钮现在隐藏在 iPad 模拟器中。但是,主页按钮可能会由以下命令触发:
Apple (command) + Shift + H
you should do this command 2 times - just like pressing home button twice.
您应该执行此命令 2 次 - 就像按两次主页按钮一样。
This will show the multi-task bar
这将显示多任务栏
回答by fzwo
The simulator hides the bezel if it thinks there's not enough room to display it. You can try rotating it, or setting it to a smaller scaling.
如果模拟器认为没有足够的空间来显示它,它就会隐藏挡板。您可以尝试旋转它,或将其设置为较小的缩放比例。
But you can also hit the home button via the keyboard shortcut cmd+shift+h; this also works for homebutton double-clicking.
但是你也可以通过键盘快捷键cmd+shift+h点击home键;这也适用于主页按钮双击。
回答by Zeyad Assem
use your keyboard to press home button (cmd + shift+h)
使用键盘按下主页按钮(cmd + shift + h)
to terminate your app drag it up from task bar
终止您的应用程序,将其从任务栏中向上拖动