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
Post a Comment