Black bars with HDMI Adapter on iPad 2

后端 未结 3 993
生来不讨喜
生来不讨喜 2021-02-11 02:16

My app supports HDMI Output.

I asked the code for the resolution of the TV and got 1920 x 1080 px for

externalScreen.bounds

OK, everyth

3条回答
  •  自闭症患者
    2021-02-11 02:45

    The setting that works best for most TVs is:

    externalScreen.overscanCompensation = UIScreenOverscanCompensationInsetBounds | UIScreenOverscanCompensationInsetApplicationFrame; // this is the same as setting it to 3
    

    Just setting it to UIScreenOverscanCompensationInsetApplicationFrame can cause misalignment of the UIWindow contents.

提交回复
热议问题