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.
Troubleshoot common UI problems
From the course: iOS 14 Development Essential Training
Troubleshoot common UI problems
- [Instructor] So here we have our application that we've been building throughout this chapter, where we put in our name and it says, "Hello," to us. We've moved this label down to the bottom. And I've intentionally broken it in a couple of ways. And I've done this because I want to demonstrate how to troubleshoot when you run into these problems. Often when people who are new to developing iOS applications, they'll start to develop something with a storyboard, and there's some kind of problem where the user interface just doesn't work as expected. For example, this Click Me button doesn't work like it's supposed to. We also have this Changed label down here, which is, one, not updating, but it's also in a weird position that is undesirable. So how do we troubleshoot these connections with objects and the positioning of objects when we're using pins? Let's go over to Xcode and check it out. So in Xcode, I'm going to stop the…
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
-
-
-
-
-