在未越狱的 iPad 1 上进行镜像

发布于 2024-11-04 17:46:28 字数 71 浏览 0 评论 0原文

我的应用程序需要镜像,但未越狱的 iPad 1 不支持它。有没有办法在我的应用程序中使用镜像,而不影响其他应用程序(在沙箱内)?

I need mirroring in my app, but iPad 1, which is not jailbroken, does not support it. Is there any way to use mirroring in my app, without affecting other applications (within the sandbox)?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

清醇 2024-11-11 17:46:28

对于 iPad,您可以将内容发送到投影仪,但只能从您的应用程序发送。即您无法镜像跳板或其他应用程序。

查看 UIScreen 的文档以及附加新屏幕时它发出的通知。您将需要创建一个单独的 UIWindow 来控制该屏幕的内容。

这是一些处理整个过程的开源代码。我自己没有使用过这个东西,但看起来不错: http://www.touchcentric.com/博客/档案/123

For iPad one you can send content to a projector but only from your app. i.e. you cannot mirror springboard or other apps.

Look at the documantation for UIScreen and the notifications it sends out when a new screen attaches. You will need to create a seprate UIWindow to control the content for that screen.

Here is some opensource code that handles the whole process. I haven't used this stuff my self but looks good: http://www.touchcentric.com/blog/archives/123

我不在是我 2024-11-11 17:46:28

值得注意的是,使用 iOS 4.3 和 iPad2,镜像屏幕要容易得多(几乎是默认设置):

“在兼容设备上,当连接外部屏幕时,iOS 会自动镜像显示。如果您不希望应用程序的内容要进行镜像,您的应用程序必须在外部显示器上显示替代内容来代替默认内容。为此,请使用在外部显示器上显示内容的正常过程,如 View 编程指南中的在外部显示器上显示内容中所述。对于 iOS。”

http://developer.apple.com/library/ios/#qa/qa1738/_index.html%23//apple_ref/doc/uid/DTS40010848

开发适用于所有设备的解决方案,请参阅 Apple 的文档:

http://developer.apple.com/library/ios/#documentation/WindowsViews/Conceptual/ViewPG_iPhoneOS/CreatingWindows/CreatingWindows.html%23//apple_ref/doc/uid/TP40009503-CH4-SW9< /a>

示例代码:

http://developer.apple.com/library/ios/#samplecode /ExternalDisplay/Introduction/Intro.html

It's important to note that with iOS 4.3 and iPad2, it is much easier - almost default - to mirror the screen:

"On compatible devices, iOS will automatically mirror the display when an external screen is attached. If you do not wish your application's contents to be mirrored, your application must present alternate content on the external display in place of the default content. To do so, use the normal process for displaying content on an external display as described in Displaying Content on an External Display in the View Programming Guide for iOS."

http://developer.apple.com/library/ios/#qa/qa1738/_index.html%23//apple_ref/doc/uid/DTS40010848

To develop a solution for all devices, see Apple's doc:

http://developer.apple.com/library/ios/#documentation/WindowsViews/Conceptual/ViewPG_iPhoneOS/CreatingWindows/CreatingWindows.html%23//apple_ref/doc/uid/TP40009503-CH4-SW9

Sample code:

http://developer.apple.com/library/ios/#samplecode/ExternalDisplay/Introduction/Intro.html

扬花落满肩 2024-11-11 17:46:28

您的 iPad 确实支持多个输出,但您需要自己对其进行编程。您需要创建第二个 UIWindow 并显示您想要在该 UIWindow 的第二个显示屏上显示的内容。

your iPad does support multiple outputs, but you need to program them yourself. You need to create a second UIWindow and show what you want to show on the 2nd diplay in that UIWindow.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文