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.