如何在 Xcode 中将 iPhone 的屏幕放到 Mac 上
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/17160694/
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 put iPhone's screen onto mac in Xcode
提问by yuhao
I watched a tutorial, what that guy did on his iPhone, appeared in Xcode simultaneously, and just like in a simulator. How to do that? THX.
我看了一个教程,那个家伙在他的 iPhone 上做了什么,同时出现在 Xcode 中,就像在模拟器中一样。怎么做?谢谢。
采纳答案by Undo
There are several possibilities, depending on what exactlyyou saw in the tutorial.
有几种可能性,这取决于究竟您在本教程中看到的。
Live video
直播视频
If the video was live, there are two things he could have been doing:
如果视频是直播的,他可能会做两件事:
Airserver, etc. (blue bar)
Airserver等(蓝条)
He could have been using an AirPlay Mirroring server app to use Airplay Mirroring on the iPhone to show his screen directly onto the Mac's screen. This is the most probablemethod.
他本可以使用 AirPlay Mirroring 服务器应用程序在 iPhone 上使用 Airplay Mirroring 将他的屏幕直接显示到 Mac 的屏幕上。这是最有可能的方法。
Simulator (no blue bar)
模拟器(无蓝条)
He could have actually been using the simulator, unless he specifically said he was using a device. There are apps you can use to make your mouse look like a finger on the simulator's display. Slightly unlikely.
他实际上可能一直在使用模拟器,除非他特别说明他正在使用设备。您可以使用一些应用程序让您的鼠标在模拟器的显示屏上看起来像一根手指。不太可能。
Still pictures
静态图片
This is the more unlikely version of the two, and would mean that all you could see was individual still pictures of the app running on the device.
这是两者中不太可能的版本,这意味着您只能看到设备上运行的应用程序的单独静态图片。
In the Xcode organizer, you can go to the screenshots tab for a device and take a screenshot of the current display of the device. Highly unlikely.
在 Xcode 管理器中,您可以转到设备的屏幕截图选项卡并截取设备当前显示的屏幕截图。不大可能。
回答by snjmhj
Open QuickTime Player,
打开 QuickTime 播放器,
File>New Movie Recording
Besides Record button(on the Quick Time Player), there is down arrow.
除了录制按钮(在 Quick Time Player 上),还有向下箭头。
Click on down arrow and select iPhone
单击向下箭头并选择 iPhone