Textfields stop accepting focus

I have added a mobilescreen to my iOS app.
On it, I have 4 textfields.

When the screen is shown modal, the first textfield has the focus, and I can enter text.

If I tab away or tap another field, the first two textfields will no longer take focus - either by tapping or by using the tab key on a keyboard.

All the fields are enabled = true
I have no code in the screen that enables or disables the textfields, nor anything that sets tabstop = false.

Does anyone have any idea what might be happening?

The mobilescreen in the IDE is like this, and all the text fields have one line of code which copies their text into window-level variables

I am now quite sure this is a bug, but I dont know if it is Xojo or iOS
Any more than two text fields on a mobilescreen shown modally, and some of them will refuse to accept focus after the focus is lost.
I tried putting them into individual container controls, and having containers on teh screen, same problem.

I have a workaround - I set up a faux dataset of ‘properties’, added a table to the screen, and put a text field onto a custom cell.
All the custom cells work properly, and I guess that means I can have as many items as I like.

1 Like