gpt4 book ai didi

iphone - 在 iOS 5 上阻止 AirPlay 镜像

转载 作者:可可西里 更新时间:2023-11-01 03:30:52 27 4
gpt4 key购买 nike

在装有 iPad 2 或 iPhone 4S 的 iOS 5 上,用户可以使用他们的 Apple TV 和 AirPlay 启用屏幕镜像。如何防止我的应用程序以这种方式被镜像?有什么方法可以检测到这种镜像正在发生,以便我可以防止我的内容被镜像吗?

这样做的原因是因为我有一些内容在法律上不允许在电视屏幕上显示。

最佳答案

这是一个非常非常糟糕的主意,我讨厌它,因为你在抑制你的用户。话虽如此,AirPlay 镜像的工作方式与连接 VGA/HDMI 适配器的方式相同,当您连接适配器时,您可以在“第二台显示器”上显示任何您想要的内容。如果您想“阻止”镜像,您可以将外部显示器的窗口设置为空白/纯黑色 View 。

Most iOS applications create and use only one window during their lifetime. This window spans the entire main screen of the device and is loaded from the application’s main nib file (or created programmatically) early in the life of the application. However, if an application supports the use of an external display for video out, it can create an additional window to display content on that external display. All other windows are typically created by the system, and are usually created in response to specific events, such as an incoming phone call.

查看 View Programming Guide for iOS ,特别是 Windows 部分和 Displaying Content on an External Display

关于iphone - 在 iOS 5 上阻止 AirPlay 镜像,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8423476/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com