From the course: iOS 14 Development Essential Training
Unlock the full course today
Join today to access over 22,600 courses taught by industry experts or purchase this course individually.
Using text gathered from text fields
From the course: iOS 14 Development Essential Training
Using text gathered from text fields
- [Instructor] Let's say you wanted to get user input in the form of text in a text field, and then use that at some place in your application. To do that, drag a text field out onto our user interface. Now, before you do that, by opening the library, make sure the last thing you clicked on was your user interface. The library changes based on your currently selected editor. So since my cursor is here instead of my code, when I open this up, I'm given options for code creation of various UI objects. And I don't want that, I actually want the UI objects themselves, or rather, the visual representation that I can drag into a storyboard. So I can get that by clicking inside of my view right here. And then now that it's active, when I open up the library I can find my text field UI element in there. If you don't see it, you can always filter for text field until you see it on the screen and then just click and drag it like this.…
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
-
-
-
-
(Locked)
Choosing between SwiftUI and storyboards3m 4s
-
(Locked)
Drag-and-drop user interface creation with storyboards4m 31s
-
(Locked)
Change a label's text at runtime5m 4s
-
Handling a button press5m 14s
-
(Locked)
Using text gathered from text fields5m 33s
-
(Locked)
Showing the keyboards1m 44s
-
(Locked)
Dismissing the keyboard2m 49s
-
(Locked)
Working with pins4m 27s
-
(Locked)
Troubleshoot common UI problems6m 21s
-
(Locked)
Challenge: Storyboards1m 58s
-
(Locked)
Solution: Storyboards3m 59s
-
(Locked)
-
-
-
-