I am trying to do a pin login similar to those found on ios and android, where the user must enter a 4 digit pin to continue. The problem I am having is that I want the input to be selected and the numberpad to be shown as soon as the user enters the page, so that the user can just enter their password.
I checked their documentation and it shows that the textfield is focusable http://docs.sencha.com/touch/2.2.1/#!/api/Ext.field.Text-event-focus but people have been having problems with it.
I am compiling my code using sencha CMD and converting it to a Native App. The focus works fine on android devices but it doesn't work on ios devices.
Below is a simple proof of concept:
Ext.application({
name : ('SF' || 'SenchaFiddle'),
launch : function() {
Ext.create('Ext.Panel', {
fullscreen : true,
items:[
{
xtype: 'textfield',
id: 'textfieldId'
}, {
xtype: 'button',
text: 'click me to focus',
handler: function () {
this.parent.down('#textfieldId').focus();
}
}
]
});
}
});