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

Using text gathered from text fields

From the course: iOS 14 Development Essential Training

Start my 1-month free trial

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.…

Contents