iOS text labels work on simulator and older devices, disappear on newer devices - ios

I am developing an app that has several vertical stacks of alternating buttons and text labels. The app appears and functions fine in the simulator on all devices, but when downloaded onto actual devices, the text labels are not visible with newer devices such as iPhone X.

Turns out the default text color is different on the newer devices. Black text on the iPhone 7. White text on a white background on the iPhone X was the problem. Weirdly, this issue was not correctly simulated on the simulator so debugging in XCode wasn't helpful- it had to be run on actual devices. Thanks DonMag for the suggestion on the background color.

Related

Unround iOS simulator corners in Big Sur?

In macOS Big Sur, is there a way to remove the rounded corners from the iOS Simulator windows? I'm not looking to change this setting system-wide, just for the simulator.
Why? For older simulators like iPhone 8 and older iPads, the rounded corners in the non-bezel windows clip part of what the end user would see. It's small, but it matters in my use case.
Choose Window > Show Device Bezels so that it is checked. Now the simulated screen display is a rectangle without rounding.

UILabel Text Not Appearing on Some Devices for iOS

This problem appears to only affect the iPad Mini 5 and the iPad Mini 4. Not the iPhone 11.
It's only the UILabel fields text. It's only on the Device, not on the Simulator.
The text display fine on anything but the iPad Mini 5 device nor the iPad Mini 4.
I've tried changing the fonts. I've tried changing just about everything that's changeable.
The app itself has been on the app store and working fine for years. Now it's not working on the iPad.
I've tried checking the uppercase/lowercase thing mentioned elsewhere. The UILabel Field background shows clearly. Just not the text that's supposed to appear in the fields.
Thanks
Attached is an image of the iPad Storyboard. The [Change Image] icon is a Button, and displays and works fine.
Any chance your device is on Dark Mode? If so, that would explain why text doesn't show and background does. Dark Mode by default will switch black texts to white and the other way around.
If that's the case and you don't want to support dark mode on you app, just disable it by adding this to your .plist:
<key>UIUserInterfaceStyle</key>
<string>Light</string>
I found the solution.
In the Attribute Inspector of the UIText I mean UILabel fields not displaying on the iPad, change the Behaviour from Enabled to Not Enabled.
In other words, I had that box ticked. I unticked it, and now it works on all devices.
Thanks for the responses.

UITextView is changing color in iPhone 6+ automatically which is not required

I have set the color of the text of UITextView from storyboard to white color. Its working fine in iPhone 5,5s,6,6s (iOS version 10.1.1) but the color is automatically getting changed to black in iPhone 6s (iOS version 9.1.1). I also provided the text color through code, then also its not working.
This is a bug from Apple's part probably in iOS 9.3.3, and it was fixed for later version of iOS, as you say it is working fine in iOS 10.1.1. You can also look into another stack overflow's post with similar issue

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.

iPhone apps UI layout issue when running on iPad

I have an application targeted only to iPhone.
Every UI is displaying perfect when I run it on iPhone.
But When I run it on iPad retina, some space of UI is cutting off from right side.
This cutted off space is shown with red in attached screenshot.
Can some one tell me what is the problem of UI when it's running on iPad?
some details:
XCode Version - 6.3
project deployment target - iOS 8
Uses storyboard.
EDIT1:
I mean this space is out of the edges of the screen. Like UI's width widen to some pixels.

Resources