Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

ajbudis

macrumors newbie
Original poster
Jun 30, 2013
20
0
Hello All!

I'm trying to make the keyboard automatically show when opening the app. The keyboard would open and allow for immediate typing in a Line Style Text Field. This is of course in the language Swift.


Any help is greatly appreciated.

AB
 
You can do in your viewDidLoad (but better viewDidAppear) to do:

Objective-C:
Code:
[yourTextField becomeFirstResponder]

Swift:
Code:
yourTextField.becomeFirstResponder()

This is in UIResponder class.
 
Hello All!

I'm trying to make the keyboard automatically show when opening the app. The keyboard would open and allow for immediate typing in a Line Style Text Field. This is of course in the language Swift.


Any help is greatly appreciated.

AB

removing it is done by
Code:
yourTextField.resignFirstResponder()
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.