Refactoring

- [Instructor] The next thing that's new in Xcode 9…is the refactoring.…If you come to a variable name,…we've always had some form of refactoring.…If you go to Editor, you can Edit All In Scope…and this will edit all variable names…or function names that are in the current file.…But with Xcode 9 they've taken it a step further.…You can up to the class name…and you have a few options of how to do this.…You can come up to the Edit menu…and say Refactor and go to Rename.…Or you can hit Command + Shift + A…or you can Command + Click…and have that same rename option.…

So Command + Shift + A,…I'm a keyboard person.…I enjoy that the best.…In this case,…if we come to here, we can rename it…and we'll just call this MyTableView…and you could see that all the instances…within this class, as well as the storyboard,…as well as the actual file name, will be renamed with this.…When I hit Enter, you can see that it's been renamed,…but over on the left, if you look,…it says that that file is missing.…It's red.…

So if you come here, you can Show in Finder,…

Resume Transcript Auto-Scroll

Author

Released

2/22/2018

Bugs and performance issues inevitably come up during coding. Xcode 9 has some great new tools for finding and fixing these issues. In this course, learn how to leverage the new Xcode developer tools to enhance your debugging workflow. First, learn what's new in Xcode 9, including refactoring tools like fix-its, wireless debugging, GitHub integration, and multiple concurrent simulators. Instructor Jon Bott also covers auditing your app for accessibility, determining the location of memory issues, and troubleshooting performance issues with threads. Plus, he explains how to debug view hierarchies to solve UI issues during runtime, and how to discover memory leaks.