Join Jon Bott for an in-depth discussion in this video Project overview, part of Xcode Developer Tools in iOS.
- [Instructor] Before we jump into the different developer tools, let's first look over the app that we'll be using throughout this course. What we have here is a simple table view of spies and their secret passwords. Some of them are readable, and some of them are passwords that are much more complex with numbers. When you select a spy, you come into a panel that gives us a little more information about the spy and you can look in their briefcase. And, in this case, you can see that there are some layout issues that we'll be leveraging with in the course.
The class files that back this project are really simple. We have our table view controller, which has a view model. And, in this view model, we're just loading the data and telling the table view to reload. This has similar methods that you've seen everywhere, the number of sections, number of rows, and how to create the cell. We are using a cell decorator, which handles setting up the cell for us. And when they select the row, we're opening a new view controller. Really, there's not a lot to this class, and so we're not going to spend much more time in it.
The detail view controller is really similar. We have outlets for it, and the only difference of the only special thing about this class is that we're doing everything in CA layer, so that you can see how non-UI kit elements affect accessibility. And then we have a Problems folder, and this is where we're going to spend the bulk of our time within this app. We have the different areas of accessibility, memory, threading, and UI.
What we will do is explore the panels that give us the information we need to debug our issues, and we'll go about solving these issues with whatever information the panels give us.
- Working with the Accessibility Inspector
- Reviewing dynamic text and audit fixes
- Changing device settings within the Inspector
- Using the Memory Debugger
- Using the Thread Sanitizer
- Debugging view hierarchies
- Analyzing a project for memory consumption