Reputation: 1012
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.
Upvotes: 1
Views: 12838
Reputation: 12668
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
Upvotes: 1