TextFields disappeared in iOS 14.0.1 - textfield

I got some very weird issue with some user of iOS 14.0.1
First he reported that the username and password fields of Login page have disappeared.
I thought how this can happened? app was even published in App Store, so I asked for a screenshot and he sent me this:
Previously I thought fields have really disappeared, but after checking code, storyboard, etc... and finding no clue, I checked the screenshot again minutely and I noticed that inputs are there but with color almost same as the background. I also noticed that the background of other inputs has changed the color to some grey (looking like disabled fields). The background of TextFields are set as "Default".In order to fix it in iOS 14, I'm having to set background in all of them as White and incase I disable anyone of them, I need to set color again as Grey (and previously all these were not needed). Does anybody is facing same?

Finally I got the problem so I'm posting the answer in case can help anybody.
The problem was that I was using System's Color and these types of colors can changed (drastically like from white to black) according to the iOS selected mode (Light or Dark).
My suggestion is avoiding System's colors as long as you want fixed colors.
And in case your device is out of date and has no Light/Dark mode, check here how to switch between the modes in simulator.

Related

How can I prevent form from randomly resizing during use?

I'm working with a status form that should look like Image 1, and initially does, but during runtime, it resizes to Image 2.
In my code I do not act upon any Length, Width or zoom levels for the form or for it's controls. I do change the borders and font initially, but that is not when the resize triggers.
I tried to run the code step by step to see exactly what triggers it, but the form does not resize when I run it like this.
This did not happened for previous versions of the file, and I didn't do any changes to the form, so I'm lost to what is going on.
I tried setting the same zoom level for both my screens, setting the zoom level for the form to 90 and back to 100, restarting my computer. After this it still resizes.
I do have a normal screen and an ultrawide one, but I've always had them, and never had any issues.
Importing the forms from an older version of the file Fixed the issue.
Can anyone give me any advice on how I can prevent this from happening?
Image 1
Image 2

"Selected" style of textfield

I am evaluating Codename One for our product and struggling to do one simple thing.
I need colour of border and text of textfield to be blue when field is focused or when I am typing in some text. However, field absolutely behaves like Pressed instead of Selected. So when I'm tapping on the field the style is correct, but when and releasing my finger from that field it turns into Unselected style.
See screenshots of my builder:
You can see that even in preview it's not blue for some reason, same in preview on the right, simulator, and on real device (iPad).
Selection on touch devices is only rendered when the user actually touches the device and hidden when there is no interaction. You can disable that behavior but that's probably not what you want to do and isn't the convention on touch devices such as iOS devices.
In order to make it work I had to set includeNativeBool constant to false. Style is shown correctly on real device, but in Simulator text still is black instead of colour that I set.
UPDATE:
As Shai advised unsetting of includeNativeBool is not a correct solution even though it changes behaviour. Setting of pureTouchBool to false is a right way to go.

Set OSX status bar app image colour

I have a frustrating problem. Ive created a StatusBar (MenuBar) app and attached a logo to it. Problem is no matter what colour the image I use for my logo is, it always turns out grey scaled in the statusBar. Drop box has a blue and green icon so I know its possible just don't know how. The image im using is a PNG btw
Okay, I figured this out. Incase anyone stumbles upon this and needs an answer. What had happened was, I had set setTemplate to YES on my highlight image. I had seen this in a tutorial I followed to learn how to make a statusMenu app in the first place. Removing this line fixed everything

unknown pattern color for the background color attribute

Getting the compiler warning:
Unsupported Configuration:
Unknown pattern color for the Background Color attribute
on my xib when trying to set the background color of a UIView to clear in interface builder. I swear I've made a UIView clear in the past without any trouble. Google isn't giving me anything useful. I feel like there is a head-slapping-simple answer here but after 14 hours at the keyboard (not on this issue) my tired mind isn't figuring it out.
I had lot of problem with the same issue. I solved this by this way
"select the UIView in interface builder, background color first set default color in option and build it".
I started getting this warning after updating to Mavericks and Xcode 5.1.1
I read elsewhere that the clearColor was the cause of this warning but in my case it was a pattern very similar to the standard Apple dark grey style background you see after updating an iPhone. No idea how it got there, don't remember ever asking for a pattern rather than a color nor how to select a pattern in the color selector popup. Perhaps it was chosen by IB because something in my original code was missing.
I changed it to Default, rebuilt and the warning has not returned. The only problem was going through each UIView until I found the one causing the warning because the background preview dropbox control in attributes is tiny.
Once aware of it, the pattern can be seen instead of a color
This is going to be a compile time error in XCode 8 (beta). Storyboard wont even open.
So we need to open storyboard in editor mode in XCode 7.x and search for "pattern" text and find the view as suggested by #Gordon Dove and fix it by changing the pattern to a plain color.

How can I control the color of the text used in a magnify window?

We are using a UITextView with a dark background. As such we have made the text white color in order to be easier to read. The problem is the magnify window that pops up when you hold down your finger to move the insertion point uses white for the text color as well. This makes it impossible to see exactly where the insertion point is.
Is it possible to independently control the text color used in the magnify window?
Here is a screen shot illustrating the problem.
I just did a quick test in here and it's working fine.
I tested with firmware 2.2.1, in the simulator and using a device.
This is what I did to test it:
1- Created a new View-Based project
2- edited the nib in the Interface Builder, added a UITextView, setting the text to white and the background to gray, leaving everything else default
Do you have something different?
Hmm, it works correctly in the Notes app. Not only is the background yellow, you also see the lines.
Maybe it depends on whether you set the background color directly on the UITextView or make it transparent and set the background color of its containing view?
I don't think you have any control over that. And I think you should file a bug report with Apple over that. It should be smarter than that.