Skip to main content
Inspiring
October 31, 2012
Question

iOS TextInput cursor and content show through title bar and other UI elements

  • October 31, 2012
  • 2 replies
  • 836 views

Hello,

I have a problem with skinClass="spark.skins.mobile.TextInputSkin" or StageText in flex, when a form is contained within a scroller, it is possible to scroll the content whilst the softkeyboard is displayed and the input element retains focus - on iOS, this causes the cursor and the text to show through UI elements on iOS such as the titlebar content.

In flash, mask doesn't work with TextFieldType.input on iOs.

Has anyone come up with a workaround ?

thanks

This topic has been closed for replies.

2 replies

Legend
October 31, 2012

Best workaround I can think of is to design the interface to match!

Text input needs to be visible on screen to be useful in any way shape or form. This is doubly so for touch screen and there is a further complication that iOS doesn't appear to like showing soft keyboard unless the field is visible that makes it quadruply so.

Simply; there is no benefit to having a text input scroll off screen. Better to set input mode to keep the text input control visible and readable at all times.

G

pol2095Author
Inspiring
October 31, 2012

ok, I try to lose focus to my TextInput when I scroll my application with stage.focus=null; but in iOs the TextInput lose focus when touch up and not when touch down, and cursor and content show through title bar.