Skip to main content
Known Participant
March 26, 2012
Question

TextField on ios is above the displaylist

  • March 26, 2012
  • 2 replies
  • 1036 views

I created form that uses several TextFields of "input" type and while those behave fine on Android on IOS, when I select textfield its "native" part shows up above the display list, so whenever i scroll my form under other parts of the application it is fully showing on top with the cursor, text entered and little "x". Is there any way to cure it? I'm baning against the wall here.

I know there is stagetext native component that should act like that but i'm using just regular textfield and i don't want any nice features but i want it to be part of my app not above it. Again, on android it acts perfectly normal.

Target device: iPod 4gen iOS 5

SDK: 4.6 + AIR 3.1

If anyone has any thoughts please help.

I'm thinking this is just a framework bug...

This topic has been closed for replies.

2 replies

Known Participant
March 28, 2012

Do you use the TextField directly or through the TextInput? I'm asking because mobile skin for TextInput uses StyleableStageText by default. And it has some limitations like you described. Read about them here:

http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/spark/components/supportClasses/StyleableStageText.html

If you use TextInput then try it with the spark.skins.mobile.TextInputSkin skin class to avoid the problems above. Note that you would loose the advantages of a native text input control as well.

ZorgonskiAuthor
Known Participant
March 28, 2012

I am not using any flex framework classes.

I am using bare bones TextField with .type = TextFieldType.INPUT but i think what is happening when you FOCUS_IN to that field, Adobe adds a native component on top which on ios is pretty crude and causes the issue i described. I guess i'll have to do some interface tweaking so i don't need to slide my form under anything....

Adobe, please improve regular text handling on ios to have benefits from native but act normally within the display list!

Another bug i saw is that every time you switch between 2 input textfields the "softkeyboardevent.deactivate" gets fired up even though it shouldnt and it doesn't on android.

And another bug is settings "Stage.focus = null" to defocus text field programatticaly has no effect on "ios"

And another bug is: sometimes native tip-like label shows up over your typed text and when the textfield gets moved it doesn't follow it.

Overall, input text handling seems pretty buggy and unfinished, hopefully this gets addressed very soon, since it is the core functionality.