Learn to use the debugging capabilities of quick looks and viewers in iPad playgrounds. Add more code to add prices to the table and debug it.
- [Instructor] In the tables you code,…you'll see we have a lot of quick looks.…Like the X code version, quick looks tell you…the state of your objects to help with debugging…but work a little bit differently…and, in my mind, better than the X code versions.…Stop the code,…hold your finger on the border of the code in live view,…drag to the right.…That hides the live view and gives us some room.…Quick looks that repeat have a number with an X after it…which is the number of times that line executed.…
If you go up a little bit,…number of sections ran six times.…For menu items dot count was five times.…Tap the quick look for return menu items dot count…and a graph appears.…For number values, you'll get a graph…for the default quick look.…You can't change the quick look to any other type.…You have to tap the add viewer button.…Go ahead and do that which adds the viewer below the line.…Double tap the graph…and you'll get some choices.…
Select list and you get the history list.…There's a handle at the bottom of the viewer…
- 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
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.