17
UITableView Richard Wollack

UITableView Training Presentation Slides

Embed Size (px)

DESCRIPTION

This is a school project for a training video about how to implement a simple UITableView into an iOS app.

Citation preview

Page 1: UITableView Training Presentation Slides

UITableView

Richard Wollack

Page 2: UITableView Training Presentation Slides

Overview

• What is a UITableView– Different Styles

• MVC and TableViews• Apple Documentation– Delegates– Required Methods

• Coding• Troubleshooting• UITableview Demo

Page 3: UITableView Training Presentation Slides

What is UITableView?• An instance of UITableView (or simply, a table

view) is a means for displaying and editing hierarchical lists of information.

Page 4: UITableView Training Presentation Slides

Different Styles

Page 5: UITableView Training Presentation Slides

Cells

WWDC Video Slides

Page 6: UITableView Training Presentation Slides

A TableView is a view, that’s it!

Page 7: UITableView Training Presentation Slides
Page 8: UITableView Training Presentation Slides
Page 9: UITableView Training Presentation Slides

Lets Code!

Page 10: UITableView Training Presentation Slides

Some Common Mistakes

• Where’s my data?

Page 11: UITableView Training Presentation Slides

Solution

Page 12: UITableView Training Presentation Slides

Wrapping Up

• TableViews are very important to learn for all different types of apps.

• KISS– Start Simple and add complexity.

• Code, Code, Code• Apple Documentation & WWDC Videos are

the best references.

Page 13: UITableView Training Presentation Slides

Create a new class that subclasses NSObject

Page 14: UITableView Training Presentation Slides

Change the type of class to UITableViewController

Page 15: UITableView Training Presentation Slides

Code for the TableViewController subclass

Page 16: UITableView Training Presentation Slides

Code from the AppDelegate

Page 17: UITableView Training Presentation Slides

The Demo