Hi,
I have an app that uses a text field to gather information. The app worked on until the last couple of days where I updated my test device to iOS7.
I am updating the app to version 2.0, and the textfield works on the simulator but not on the device. The app version 1.0 that is on the app store does not work either on iOS7 where it works on iOS6.
SDK has changes since the first version of my app but to simplify I have tried changing the textfield function to as follows:
local serialNumField; local function fieldHandler2( event ) print("Text entered: ".. event.target.text) if event.phase == "began" then print("begin") -- user begins editing textField elseif event.phase == "ended" then print("ended") -- textField/Box loses focus elseif event.phase == "submitted" then print("submitted") -- do something with defaulField's text native.setKeyboardFocus( nil ) elseif event.phase == "editing" then print("editing") end end --serialNumField.userInput = fieldHandler2; serialNumField:addEventListener ("userInput", fieldHandler2)
On the simulator I see printed in console the first “Text entered:” with the correct text I have entered afterwards but in the device I get it without the text entered.
I also do not see any print on any of the phases where I used to see them before iOS7, looks like it does not detect them.
Am I doing something wrong or is it a iOS bug?
Thanks for the help in advance!