From the course: iOS 14 Development Essential Training

Unlock the full course today

Join today to access over 22,500 courses taught by industry experts or purchase this course individually.

Showing the keyboards

Showing the keyboards

From the course: iOS 14 Development Essential Training

Start my 1-month free trial

Showing the keyboards

- [Instructor] You may have noticed that when you open up the application, the text field is not automatically selected and the keyboard is not showing until you click inside of it. For some apps this may be the desired functionality. For others, you may want the keyboard to automatically go with a highlighted text field, ready to accept user input when you decide. Let's take a look at how that works. Going to head over two Xcode. You can make sure your app's not running by hitting the Stop button. So now what we want to do is say that when the application loads up, we're going to have our text field do something called become the first responder. The concept of a first responder is an important concept to grasp when doing iOS development. A first responder refers to the object that is currently receiving user input. So when we say the view loads, we can say make the text field the first responder. And when we do…

Contents