سؤال

I am working on an iPad application, and I have to give a demo on a television through HDMI, but iPad screen only appears in the middle of the TV screen.

How can I make my app fill the whole TV, without leaving black spaces on the sides?

I have seen another app that covers the whole screen of the TV.

هل كانت مفيدة؟

المحلول

It sounds like you want to mirror your iPad display onto the tv?

If that is the case then you cannot change the aspect ratio because you are mirroring your 1024x768 screen.

Status board is designed specifically to support a second screen and does not mirror the iPads display.. this is done because the second UIScreen has a size that supports the physical screen.

If you want to optimize your app to support a second screen then check this out: https://developer.apple.com/library/ios/documentation/WindowsViews/Conceptual/WindowAndScreenGuide/UsingExternalDisplay/UsingExternalDisplay.html

Otherwise I'm aftaid you have to live with the black borders..

Think about it, if you tried mirroring your macs monitor onto an external display then this would still be the case

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top