Introduce the quick look for debugging. Review the different modes of quick looks and result views.
- [Instructor] You've created a prototype…in Xcode Playgrounds.…We've run it, and it all seems to be working fine.…To make sure the prototype works correctly,…we have quick looks to debug the code.…In Xcode, you'll find two icons appear and disappear…as you drag your mouse over them.…One is an eye, and one is a square.…The square is a show result.…The eye is a quick look.…Close up the live view.…On the right margin of the viewDidLoad…view backgroundColor = yellow, click the eye,…and get a quick look.…
And you get a popup showing the background view.…Click the code to dismiss.…Slide down to the bottom of the code,…just before the ending brace of the for loop.…Insert another line and type index…for the variable on a separate line.…Any time an object appears on a line by itself,…you get a quick look.…Tap the quick look for this line,…and you get a chart of the values for this object.…If you have a numeric value, you'll get a chart.…
Make the chart a show result…by clicking the rectangle.…The chart shows under the index variable.…
- Comparing iPad and Xcode playgrounds
- Creating and testing Swift classes and code in iPad and Xcode playgrounds
- Prototyping code
- Debugging and testing with Quick Look live views
- Using markup to interactively document code and create educational lessons
- Compiling code into playground books
Skill Level Intermediate
iOS App Development: Notificationswith Steven Lipton1h 10m Intermediate
1. Introducing Playgrounds
2. Xcode Playgrounds
3. iPad Playgrounds
4. Markup and Playgrounds
5. Playground Books
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.