UILabel Text Not Appearing on Some Devices for iOS - 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.

Related

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

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.

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

iOS: When VoiceOver is turned ON using the Accessibility shortcut of triple clicking Home Button, the screen gets turned off

The accessibility elements are being read correctly in the background, i.e the labels being read can only be heard but cant see the screen as it blacks out, just the screen goes dark. Anybody come across the issue?
Verified this is in iOS 11 with iPhone 6s, iPhone 7 plus.
(Project is in Swift although it must not matter)
Found out that with 3 finger triple tap on screen , the above setting gets disabled. And the Accessibility Voice Over starts to work as normal, i.e reading the labels with the screen turned ON.

UIButton title issue on iPhone6 with iOS9.3.2

I created button using storyboard and set the tittle with out any underline using custom font. But i got underline under title of button in only iPhone6 with iOS 9.3.2 but not all devices. Please see the below image. I have checked all apple documents but i didn't get any solution. Is the iOS problem or iPhone problem or any settings on iPhone6 related button?
Open Setting app in your iphone, Go to general then go to accessibility, under accessibility turn off the switch for Button shapes
It may solve your problem i think. Because if you have used button with type system then it will use system's configuration for button!!

iOS 8 UITableViewController separator scrolling render

I've come accros a problem with iOS 8 on the iPhone6 and simulator, when you have a UITableViewController with visible separators there seems to be some render problem. Now I could post some code but really if you make just a simple UITableViewController you would have the same problem, just look at eBay and Kijiji they all have this issue.
Normally you wouldn't see this small difference if it only happened once in a blue moon but if you scroll none stop you will see it flash. (less on Ebay since their separators are too close to white but Kijiji is pretty apparent)
Sorry I wanted to post a screenshot but sadly I don't yet have the reputation to do so therefore you will have to try it out yourself's.
Any help would be appreciated
Thanks
The reason why the separators flash is because the app is not designed for the larger displays, and the phone is upscaling the app to fill the larger screen. Since the separator height becomes fractional, the separator line crosses pixel boundaries and becomes antialiased, making it appear wider, lighter, and/or darker than normal.
The answer is to (wait for the developer to) update the app to support the native resolutions of the iPhone 6 and 6 Plus.
You can enable native resolution in your own app by adding launch images or a launch screen file.
Launch images
iPhone 6 requires a portrait launch image of 750x1334.
iPhone 6 Plus requires both portrait (1242 x 2208) and landscape (2208 x 1242) launch images, since it can launch apps in landscape as well as portrait.
Launch screen file (iOS 8)
You can add a launch screen storyboard or nib through Xcode.
In Xcode 6, open the File menu and choose New > File... > iOS > User Interface > Launch Screen.
In the General tab for your project's settings, look for the App Icons and Launch Images section. Set the Launch Screen File to the name of the file you created. This will set the UILaunchStoryboardName key in your Info plist.
Add Renders with edge antialiasing in your plist file, fixed the problem for me.
Remove the Clips Subviews on my custom cell did fix the issue for me.

Resources