swift - Make iOS Simulator automatically open up with the keyboard displayed? -


(e.g., in uitextfield in safari)

so when click "run" triangle in xcode automatically show me keyboard in ios simulator when pops up

in viewwillappear method of initial view controller call:

yourtextfield.becomefirstresponder() 

this should make text field first responder , should show keyboard.

if, however, text field becomes focused , see cursor keyboard not visible press cmd + k. in simulator have manually call keyboard appear. shouldn't concern - when test on iphone work fine , keyboard show long text field first responder


Comments

Popular posts from this blog

javascript - Using jquery append to add option values into a select element not working -

Android soft keyboard reverts to default keyboard on orientation change -

jquery - javascript onscroll fade same class but with different div -