Ios 如何从iPad启用1920x1080外部显示器?
我正试图通过Lightning AV适配器从iPad 4(MD513LL/A型)设置一个运行速度为1920x1080的外部显示器。当我分析每个可用模式时,我会看到以下内容:Ios 如何从iPad启用1920x1080外部显示器?,ios,objective-c,ipad,external-display,Ios,Objective C,Ipad,External Display,我正试图通过Lightning AV适配器从iPad 4(MD513LL/A型)设置一个运行速度为1920x1080的外部显示器。当我分析每个可用模式时,我会看到以下内容: 1600x900 1280x720 1024x768 800x600 640x480 720x480 我用三台现代(1-2年)电视测试了这一点,在每台显示器上都得到了相同的结果,但从未见过1920x1080。下面是我用于外部显示的代码 编辑:我发现这只是Lightning数字AV适配器的问题,而不是原来的数字AV适配器
- 1600x900
- 1280x720
- 1024x768
- 800x600
- 640x480
- 720x480
if ([[UIScreen screens] count] > 1)
{
UIScreen *secondScreen = [[UIScreen screens] objectAtIndex:1];
NSString *availableModeString;
for (int i = 0; i < secondScreen.availableModes.count; i++)
{
availableModeString = [NSString stringWithFormat:@"%f, %f",
((UIScreenMode *)[secondScreen.availableModes objectAtIndex:i]).size.width,
((UIScreenMode *)[secondScreen.availableModes objectAtIndex:i]).size.height];
[[[UIAlertView alloc] initWithTitle:@"Available Mode" message:availableModeString delegate:nil cancelButtonTitle:@"OK" otherButtonTitles:nil] show];
availableModeString = nil;
}
// undocumented value 3 means no overscan compensation
secondScreen.overscanCompensation = 3;
self.secondWindow = [[UIWindow alloc] initWithFrame:CGRectMake(0, 0, 1280, 720)];
self.secondWindow.backgroundColor = [UIColor blueColor];
self.secondWindow.screen = secondScreen;
T9SecondaryScreenViewController *viewController = [[T9SecondaryScreenViewController alloc] initWithNibName:@"T9SecondaryScreenViewController" bundle:nil];
self.secondWindow.rootViewController = viewController;
self.secondWindow.hidden = NO;
}
if([[UIScreen screens]计数]>1)
{
UIScreen*secondScreen=[[UIScreen screens]对象索引:1];
NSString*可用性销毁;
对于(int i=0;i
不幸的是,此适配器不能支持1080p
也许电视机本身不支持1920x1080?电视机都支持1920x1080。它们是在过去两年内购买的消费者级40-60英寸液晶电视。当iPad连接时,电视显示它正在播放1920x1080视频。是的,我刚刚在苹果开发论坛上发现了这一点。难以置信。