DAS DAS - 1 year ago 62
iOS Question

Black bars with HDMI Adapter on iPad 2

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, everything fine. I've setup my views and tried it on the TV ...

BUT: There were black bars on the bottom / top / sides of the screen though the TV was detected correctly as 1920 x 1080 and my view is also set up correctly?

Why is the format wrong?

P.S. When I mirror the home screen, it also shows the bars, when I watch a video with the Youtube App, the black bars disappear?

Thank you for your help!

Update:

OK, although I got this output in my console:

A new screen got connected: <UIScreen: 0x3439a0; bounds = {{0, 0}, {1920, 1080}}; mode = <UIScreenMode: 0x345240; size = 1920.000000 x 1080.000000>>


... I still get the black frame. I init my view with
CGRectMake(0.0f,0.0f,1920.0f,1080.0f)
for test purposes.

This is the view I can see on my screen (note the black bars):

enter image description here

DAS DAS
Answer Source
externalScreen.overscanCompensation = UIScreenOverscanCompensationInsetApplicationFrame;
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download