27 Jan 2014 1:27 AM #1
Show keyboard on iOS automatically
I am developing a sencha touch application for ipad. I'm stuck with one feature: when user sees a screen with text field, I need to focus on that field automatically so that iPad's keyboards shows up (design feature to save time on the flow).
I trid to set focus on input when the screen is being shown. The following example works everywhere except iPad:
So I added special "Set focus" button to test it in ipad and it works. But I got confused with this strange behaviour. Why I can set the focus using the button, but with the painted event in textfield I can't. And is there any way to solve this via painted event?
I would appreciate any help from you! Thank you!
28 Jan 2014 1:55 PM #2
iOS only sets focus when inside a touch event handler.
http://stackoverflow.com/questions/1...-mobile-safariGet more personalized support via a support subscription.
Want to learn Sencha Touch 2? Check out
Sencha Touch in Action
Need more help with your app? Hire Sencha Services firstname.lastname@example.org
When posting code, please use BBCode's CODE tags.
Need to include a test case use:
The official Sencha Fiddle