Lecture 9

Lecture 9 - Stanford CS193p Fall 2011 Developing...

Info iconThis preview shows pages 1–14. Sign up to view the full content.

View Full Document Right Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: Stanford CS193p Fall 2011 Developing Applications for iOS Fall 2011 Stanford CS193p Text Stanford CS193p Fall 2011 Today Table View Displaying a dynamic list of data. Or displaying a ¡xed table of data. Demo Favorite graphs feature in Calculator. Popover with delegate call back. Table view with dynamic list of data. Stanford CS193p Fall 2011 UITableView Very important class for displaying data in a table One-dimensional table. It’s a subclass of UIScrollView . Table can be static or dynamic (i.e. a list of items). Lots and lots of customization via a dataSource protocol and a delegate protocol. Very ef¡cient even with very large sets of data. Displaying multi-dimensional tables ... Usually done via a UINavigationController containing multiple MVC’s where View is UITableView Kinds of UITableView s Plain or Grouped Static or Dynamic Divided into sections or not Different formats for each row in the table (including completely customized) Stanford CS193p Fall 2011 UITableView UITableViewStylePlain UITableViewStyleGrouped Stanford CS193p Fall 2011 UITableView Table Cell Table Footer Table Header Section Header Section Footer Section Plain Style Stanford CS193p Fall 2011 UITableView Table Cell Table Footer Table Header Section Header Section Footer Section Grouped Style Stanford CS193p Fall 2011 Sections or Not Sections No Sections Stanford CS193p Fall 2011 Cell Type Basic Subtitle Right Detail Left Detail UITableViewCellStyleSubtitle UITableViewCellStyleDefault UITableViewCellStyleValue1 UITableViewCellStyleValue2 Stanford CS193p Fall 2011 UITableViewController iOS class used as the base class for MVC’s that display UITableView s Just drag one out in Xcode, create a subclass of it and you’re on your way! Creating Table View MVCs Dragging out a UITableViewController Stanford CS193p Fall 2011 UITableViewController iOS class used as the base class for MVC’s that display UITableView s Just drag one out in Xcode, create a subclass of it and you’re on your way! Creating Table View MVCs Stanford CS193p Fall 2011 UITableViewController iOS class used as the base class for MVC’s that display UITableView s Just drag one out in Xcode, create a subclass of it and you’re on your way! Creating Table View MVCs Choose New File ... from the File menu to create a custom subclass of UITableViewController Stanford CS193p Fall 2011 UITableViewController iOS class used as the base class for MVC’s that display UITableView s Just drag one out in Xcode, create a subclass of it and you’re on your way! Creating Table View MVCs Choose New File ... from the File menu to create a custom subclass of UITableViewController Be sure to set the superclass to UITableViewController !! Stanford CS193p Fall 2011 UITableViewController iOS class used as the base class for MVC’s that display UITableView s Just drag one out in Xcode, create a subclass of it and you’re on your way!...
View Full Document

This note was uploaded on 01/25/2012 for the course CS 193P taught by Professor Evandoll during the Fall '09 term at Stanford.

Page1 / 66

Lecture 9 - Stanford CS193p Fall 2011 Developing...

This preview shows document pages 1 - 14. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online