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
From the course: iOS 14 Development Essential Training
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…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
Choosing between SwiftUI and storyboards3m 4s
-
Drag-and-drop user interface creation with storyboards4m 31s
-
Change a label's text at runtime5m 4s
-
Handling a button press5m 14s
-
Using text gathered from text fields5m 33s
-
Showing the keyboards1m 44s
-
Dismissing the keyboard2m 49s
-
Working with pins4m 27s
-
Troubleshoot common UI problems6m 21s
-
Challenge: Storyboards1m 58s
-
Solution: Storyboards3m 59s
-
-
-
-
-