Skip to main content
Participant
May 20, 2013
Question

Clearing input text boxes for iOS apps

  • May 20, 2013
  • 1 reply
  • 378 views

I'm making an app for iOS (iPad specifically) and am having an issue.  I have an input text box in my app called 'answer' - when a user types in a correct answer I need the text box to go blank again so they can enter another one.  This works fine typically by simply doing answer.text = "";  however when publishing this app with Air for iOS, when a user types in an answer the input text box does NOT clear itself - the answer remains in it (the quiz does respond to the correct answer so it does read in the input text fine), however answer.text = "" for some reason does not clear the text box in the app when testing it on my iPad.  Any clues on this?  Thanks in advance.

This topic has been closed for replies.

1 reply

Participant
May 20, 2013

actually i finally found my answer in another forum...needed to do stage.focus to somewhere else, then clear the textfield, then stage.focus back to the text.