Asking the user to type

I ran into a problem.

I have a page, where if the user clicks on a regular display.newRect, the cursor should appear there and they should be able to type something, and then the text stays there. But I am not sure on how to do that. Is there any way I can do that, because I couldn’t find it in the API. Thanks.

You need to look at:

native.newTextField   http://docs.coronalabs.com/api/library/native/newTextField.html

native.newTextBox    http://docs.coronalabs.com/api/library/native/newTextBox.html

Rob

You need to look at:

native.newTextField   http://docs.coronalabs.com/api/library/native/newTextField.html

native.newTextBox    http://docs.coronalabs.com/api/library/native/newTextBox.html

Rob