iPad Mirroring 使用 2 个屏幕,支持 1080 分辨率吗?
2.5 年的 Mac 和 iOS 开发,我还没有找到答案。
我正在开发一个项目,利用 iOS 5.0 和 Apple TV 的 Airplay 在 iPad 上显示一个 UIScreen,在 Apple TV 上显示一个单独的 UIScreen。我有 2 个独立的视图控制器,它们分别在每个视图控制器上显示良好。
问题是 Apple TV 屏幕尺寸返回为 720p,而不是 1080p。所以我得到了一个 1280 X 720 显示的有边框视图控制器,而不是 1920 x 1080 的全屏表示。效果是我的视图控制器被裁剪而不是缩放。
我尝试了一些顽皮的事情,例如更改 UIScreen 的屏幕边界和视图控制器边界,但这不起作用。
简单地说:
iOS 5 是否支持全屏 1080p 视图控制器显示?如果是的话你是怎么做到的?
编辑:
所以问题被修改为如果只能显示 720p 那么我如何让应用程序全屏显示其视图控制器而不是裁剪/信箱?
2.5 years of mac and iOS development and i haven't found an answer to something.
I'm working on a project utilizing iOS 5.0 and apple TV's airplay to display one UIScreen on the iPad and a separate one on my Apple TV. I have 2 separate view controllers and they display fine on each respectively.
The issue is that the apple tv screen size returns at 720p not 1080p. So i get a bordered view controller at 1280 X 720 displayed and not a full screen representation of 1920 x 1080. The effect is my view controller is cropped not scaled.
I tried the naughty things like changing screen bounds of the UIScreen and the view controller bounds but that doesn't work.
Simply put:
Does iOS 5 support a full screen 1080p view controller to be displayed? if so how did you do it?
EDIT:
So the question is modified that if only 720p is possible to display then how do i get the app to display its view controller fullscreen and not cropped/letterboxed?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
Apple TV 仅支持 720p,但需要注意的是,数字 AV 适配器支持 1080p (1920x1080)。我怀疑如果下一代 Apple TV 发布,它将支持 1080p,并可能支持通过 AirPlay 显示。
撇开这个问题不谈,我遇到了和你完全相同的问题 - 我费尽心思试图弄清楚为什么在通过数字 AV 适配器和通过 Airplay 在我的三星电视上显示时我的视图会被插入。我终于发现这是我的电视如何配置我使用的端口的问题。当我找到相关输入的“Just Scan”选项时,它解决了问题,我得到了完美的边到边图像。使用数字 AV 适配器的 1080p 输出非常漂亮,我在创建一个利用它的应用程序时遇到了很多有趣的事情。
在调查的过程中,我了解了UIScreen的新iOS 5.0 overscanCompensation属性(http://developer.apple.com/library/IOs/#documentation/UIKit/Reference/UIScreen_Class/Reference/UIScreen.html)。这不是我遇到困难的根源,但您可能想尝试一下它的设置,看看它是否可以解决您的问题。
Apple TV only supports 720p, but it should be noted that the Digital AV Adapter supports 1080p (1920x1080). I suspect that if a next gen Apple TV is released, it will support 1080p and may support displaying it over AirPlay.
That issue aside, I faced exactly the same problem as you - I was pulling my hair out trying to figure out why my view was inset when displaying both via the Digital AV Adapter and over Airplay on my Samsung TV. I finally figured out that it was an issue with how my TV was configured for the ports that I was using. When I found the "Just Scan" option for the relevant inputs, it solved the problem and I got a perfect edge-to-edge image. The 1080p output using the Digital AV Adapter is gorgeous and I'm having lots of funny creating an app that leverages it.
In the process of investigating, I learned about the new iOS 5.0 overscanCompensation property of UIScreen (http://developer.apple.com/library/IOs/#documentation/UIKit/Reference/UIScreen_Class/Reference/UIScreen.html). This was not the source of my difficulties, but you might want to play with it's settings to see if it solves your issue.
由于 Apple TV 不支持 1080p(仅 720p),因此无法使用。
看看他的技术规格:http://store.apple.com /us/browse/home/shop_ipod/family/apple_tv
更新:
最新的 Apple TV 现在支持 1080p。
Since the apple TV does not support 1080p (only 720p) it won't work.
Take a look at his tech specs: http://store.apple.com/us/browse/home/shop_ipod/family/apple_tv
Update:
The newest apple TV now supports 1080p.