iOS screen mirroring shows overscan borders on selected apps

落爺英雄遲暮 提交于 2019-12-08 19:15:57

问题


Problem: iPhone screen mirroring & a dedicated external view of my app show an inch of a black border on all sides.

But: Some views display perfect without black borders on the full-screen, e.g., the Apple TV menu and the photo app.

Tried already - with no effect:

  • Disabled overscan on 1080p HD TV ("Disable 16:9 overscan") ( iPad Mirroring using 2 screens, does it support 1080 resolution? )
  • set UIScreenOverscanCompensation - has no effect ( IOS - External (hdmi) output fills only half the screen except when coding view manually )

Setup: iPhone 4S (5.0.1), Apple TV 2nd generation (4.4.4)

Any suggestions what I could try additionally?


回答1:


Ran into the same issue and it took a while to find the 'solution'. Turns out you can set the overscanCompensation to '3' and it will remove the borders.

I think Apple just left out the documentation & enum for UIScreenOverscanCompensationNone, but that down in the code they check for it.




回答2:


If you also have black borders during AirPlay Mirroring the answer Of MobileVet won't solve that. Try changing the following setting on your Apple TV: Settings > Audio & Video > Adjust For AirPlay Overscan. Set it to Off (default On).

And btw: doesn't 3 just mean UIScreenOverscanCompensationInsetBounds | UIScreenOverscanCompensationApplicationFrame (1 + 2) ?



来源:https://stackoverflow.com/questions/9465712/ios-screen-mirroring-shows-overscan-borders-on-selected-apps

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!