Hi,
I’m working in a team on a fairly large education app. Because it is for education we need much better control and special features on how the user is able to edit and input text. That’s why we are building around the native text field to create a richer feature-set for user input, we need better control. So, enough of the prefacing.
When I run the very small example below, type in some characters and then press the undo button on the keyboard the app crashes. I’m on Corona SDK Version 2014.2189 (2014.3.6).
Edit: device tested on is iPad 4.
I have no idea what is causing this or more importantly how to solve it. Please help.
local nativeTextField = native.newTextField(500, 100, 100, 40) nativeTextField.userInput = function (self, event) if event.phase == "editing" then nativeTextField.text = 'foo' end end nativeTextField:addEventListener('userInput', nativeTextField)
Best Regards,
/Fredrik