ios - 如何从iPad启用1920x1080外接显示器?

标签 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适配器。
    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;
    }
    

    最佳答案

    不幸的是,该适配器不能支持1080p。

    Source

    关于ios - 如何从iPad启用1920x1080外接显示器?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16179558/

    相关文章:

    ios - xmpp如何向离线用户发送推送通知

    ios - 用于匹配字符串子串的 Swift switch 语句

    javascript - React Native - 构建应用程序

    objective-c - Objective-C 中如何防止 float 四舍五入?

    objective-c - 如何使 super 成为 NSTimer 的目标?

    ios - UIImageView 中的图像粘在 UIImage 空间的底部

    ios - Objective C 在真实设备上的动态绑定(bind)

    javascript - iPad 表格单元格上 "click"事件的精度

    iphone - 在为 iOS 设备(iPhone、iPad)上的 Epson POS TM-T88 编写收据打印机驱动程序时需要帮助吗?

    iphone - 为什么宏中的条件语句在 IOS 中对成语不起作用?