1
A
回答
1
是,appletv的屏幕根据实际的电视设备是不同的大小。
如果你想从设备得到连接电视的尺寸, 按照这些:
通知中心
NSNotificationCenter *center = [NSNotificationCenter defaultCenter];
[center addObserver:self selector:@selector(handleScreenDidConnectNotification:) name:UIScreenDidConnectNotification object:nil];
连通知
-(void)handleScreenDidConnectNotification : (NSNotification *)aNotification{
UIScreen *newScreen = [aNotification object];
CGRect screenBounds = newScreen.bounds;
// screenBounds --> Get the size from it
}
相关问题
- 1. iOS 8和UIScreen尺寸问题
- 2. 为什么我的UIScreen和UIWindow尺寸不匹配?
- 3. iPhone 6加真实设备UIScreen mainScreen尺寸奇怪
- 4. 为什么[UIScreen mainScreen] .bounds]没有返回全屏尺寸?
- 5. Magento产品尺寸的尺寸单位
- 6. Devel ::尺寸报告的尺寸
- 7. 尺寸图像的尺寸1600 * 1200
- 8. CVMat尺寸/尺寸/形状
- 9. NSImageView尺寸vs NSImage尺寸
- 10. 计算尺寸/尺寸
- 11. ID3D11ShaderResourceView的尺寸
- 12. Xcode - 如何添加xib启动画面而不更改UIScreen尺寸
- 13. ExcelWorksheet尺寸的NullReferenceException
- 14. 大尺寸的MPI_Type_vector
- 15. 的Javascript Window.Open尺寸
- 16. 的Tableau:由尺寸
- 17. 尺寸仪... - wxPython的
- 18. 的fancybox错尺寸
- 19. Valgrind的:尺寸8
- 20. 控制::的尺寸::
- 21. 尺寸
- 22. 我的html表格的框尺寸没有合适的尺寸
- 23. 尺寸类别和UITableViewCell/UICollectionViewCell尺寸
- 24. Silverlight 3:尺寸模型/ 100%尺寸
- 25. 如何用wkhtmltopdf处理尺寸/尺寸?
- 26. 尺寸图像以适合WebView尺寸
- 27. 全尺寸Silverlight应用尺寸
- 28. PDF尺寸对实际内容尺寸
- 29. 屏幕尺寸到图像尺寸
- 30. 在较小的屏幕尺寸下适合尺寸的内容
好吧我只是意识到d,通常支持1080p的AppleTV3,当从应用程序做AirPlay时只能处理720p ......正如一些人已经在这里讨论的那样http://stackoverflow.com/q/9952739/129202拥有1080p输出真的很不错。 – Jonny
好吧,更正确的答案可能应该是,使用AirPlay的媒体流可能适用于1080p的媒体,如视频和图片,而*镜像*只适用于720p。而且这是“镜像”,将在制作应用程序时用于任何其他情况。有趣的是,即使它被称为镜像,两个屏幕的内容也不同,所以镜像词根本不适合。让我们希望Apple有一天会清除它... – Jonny