External display shows black borders on iOS 8 - ios

Problem: The external screen connected through HDMI cable shows black borders on all sides. I already have tried setting the overscanCompensation property with no luck.
The problem occurs only if app is run on iOS 8, on iOS 7 external (TV) screen shows no borders.
I can't find overscan configuration on my Samsung TV though.
Any suggestions what I could try additionally?

Until now I can't find any solution to this black border... The old tricks like set the
overscanCompensation to '3' does not work now.
Workaround with Apple TV:
If you can use an Apple TV, you are able to disable this overscaling on your Apple TV: Settings > Audio & Video > Adjust For AirPlay Overscan. Set it to Off (default On).
I hope that Apple will create an option the user to be able to disable this on his/her iDevice...

Related

In Xcode 11, what is the button below the Live Preview button?

In Xcode 11, there are two buttons next to the device preview. The one on the top we all know is the Live Preview. However the one on the bottom does not seem to be doing anything. Why would Apple leave a completely useless button there? Am I missing out some awesome functionality?
The button icon looks like it could be related to constraints... but I don't know.
This button lets you to instantly run the app on an attached device so you can see the live changes directly on your device instead of Xcode's canvas preview.
Note that you need iOS 13 installed on your device to be able to use this capability.

UIView shows perfect on iPhone but not on iPad

I am pretty new to iOS development and I am able to create views and controllers. I have been testing using my iPhone and other sizes of iPhone and they look great. I tried once on an iPad but it was a border around the screen like in this image.
I constrained to margins and I did not give any height or width constraints so it could stretch properly. It also looks good on the storyboard viewing so what could I be doing wrong? Can't seem to find any resource online to help.
This is default behaviour when you run iphone app in ipad
This happened because your app is supported iphone only .
Tap on your project and select universal if you want to add support for both iphone and ipad.
Other option is you can check requires full screen check box but it will still show black bar
Note: However you are developing iPhone Only app but it is compulsory to check that everything works fine in ipad because apple review team will also check that in ipad and your app may be rejected if something is not proper
May be you have made an iPhone app. Try to change the setting to Universal app in the xcode settings. Normally iPhone app shows scaled on iPad, which is same as in your case.
Select Projet in xcode -> General Setting

Xcode 7.1 iOS 9.1 Simulator transparent

I just recognized that I can see thru the iOS Simulator if an UIView is defined with (semi-) transparent content. But I can not make a screenshot of it, on the screenshot the effect is gone.
The (custom) navigation bar on top has alpha set to CGFloat(0.9).
Here a screenshot taken with an iPhone 6:
Zoom in and you can see thru the simulator window on Xcode. I assume this is a bug, or is it intended behavior of the OS X transparency effects? If it is intended, can I turn it off?
Ok, I have found the problem. Actually it is not a transparency effect but a display problem. I am using an iMac 27inch with an IPS LCD display, which suffers heavily from "screen burning". Xcode is standing on this position for hours so it burned in into the display. That's why I can not make a screenshot - it is a hardware problem.
https://discussions.apple.com/thread/5255653?tstart=0
Yeah this is going to be a hardware / screen problem. Should not translate to your app.

iOS screen mirroring shows overscan borders on selected apps

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?
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.
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) ?
Due to changes in iOS 13 for displaying content on a connected screen, I had to set screen.overscanCompensation = .scale after we find the connected window scene. I noticed this after I got a message in the console, if you try to set it directly in the .UIScreenDidConnect notification.

is Second Screen capable of 16:9 via AirPlay over AppleTV in iOS 5.0.1

i think about extending support within one of my apps to handle a second screen via AppleTV.
The question is:
If i just mirror my App, the nice 46" LCD TV shows only a 4:3 Letterbox Image of my App. Is it possible to use the full 16:9 ratio if i change my app to render a different screen for Apple TV / AirPlay?
Absolutely. In iOS 5, a mirrored AirPlay screen can be used as a secondary UIScreen, which can have content different from what is on the device screen. That's what you want to do.
You can see how to do this here:
https://github.com/quellish/AirplayDemo
Your device screen is mirrored until you start using that secondary UIScreen, and you can remove the window you attach the to the UIScreen and go back to mirroring. This lets you control when you're putting custom content on there, and when you're just mirroring.
Absolutely - see Real Racing HD 2 for a great example!

Resources