Learn how to add code for a UITableVIew. which works in a playground to list the pizzas.
- [Instructor] So far in this project,…we've made the basics of a live view Playground…using a table view.…There are three methods you need to write…for a table view to work.…To make it easier to code,…drag the border between the live view…and the code to the right.…Now we're ready to add a little bit more code to this…in the OrderTableViewController.…So, underneath the var, press Return,…pull up the keyboard, and type in N-U-M.…
You should see numberOfSections in tableView…UITableView int.…Select that.…Select the value, and we're going to Return,…and the value will be one.…That's all we need for that one.…But you'll see that we have an error.…Tap the red dot.…And it says, oh, this needs an override keyword.…So I'll go ahead and fix it, and insert override,…and the dot disappears.…
Now go ahead and type num again.…Scroll over a little bit,…and the next one you have is…tableView UITableView numberOfRowsInSection.…Select that one.…In this one, we're going to hit Return,…and then we're going to hit menuitems,…which was slightly over there a little bit…
- 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?
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.