Pro iOS table views for iPhone, iPad, and iPod Touch
If you’re an iOS app developer, chances are you’ll be using table views in your development projects. Table views are the bread and butter of iOS apps. With them, you can create everything from the simplest of lists to fully tricked-out user interfaces. Table views are also one of the most complex c...
Autor principal: | |
---|---|
Formato: | Libro electrónico |
Idioma: | Inglés |
Publicado: |
New York :
Apress
2012.
|
Edición: | 1st ed. 2012. |
Materias: | |
Ver en Biblioteca Universitat Ramon Llull: | https://discovery.url.edu/permalink/34CSUC_URL/1im36ta/alma991009628598606719 |
Tabla de Contenidos:
- Title Page; Copyright Page; Contents at a Glance; Table of Contents; About the Author; About the Technical Reviewer; Acknowledgments; Introduction; What This Book Covers; The Style of This Book; The Book's Source Code; Where to Find Out More; Contacting the Author; Chapter 1 Table Views from the Ground Up; What Are Table Views?; The Anatomy of a Table View; Creating a Simple Table View App; Creating the Application Skeleton; Generating Some Data; Creating the Table View; Conforming to the Table View Protocols; Wiring Up the Data Source and Delegate; Displaying the Data
- numberOfSectionsInTableView:tableView:numberOfRowsInSection:; tableView:cellForRowAtIndexPath:; Adding Some Interactivity; tableView:didSelectRowAtIndexPath:; Understanding How the App's Objects Fit Together; Summary; Chapter 2 How the Table Fits Together; Understanding Table Views; Working with the UITableView Family; The UITableView Class Hierarchy; Choosing the Type of Table View; The Plain Table; The Indexed Table; The Sectioned Table; The Grouped Table; Setting TableView Dimensions; Controlling the Background of a UITableView; What UITableView Inherits from UIScrollView
- Creating UITableViewsCreating a UITableView in Interface Builder; Placing a UITableView into Another View; Placing a Full-Screen UITableView; Creating a UITableView Programmatically; Creating a UITableView with UITableViewController; Summary; Chapter 3 Feeding Data to Your Tables; UITableView and Delegation; Understanding Delegation; tableView:didSelectRowAtIndexPath; tableView:cellForRowAtIndexPath; Setting Delegates; Wiring Up an Object with a Delegate; Defining Protocols; Using UITableView's Delegate Methods; Using UITableViewDelegate Methods; Data Sources
- The Key Information Required By a UITableViewGetting the Number of Sections in the Table; Getting the Number of Rows in the Section; Getting Cells That Belong in This Row of This Section; How the Key Information Is Obtained by the Table; Cell, Section, and Row-Related UITableViewDataSource Methods; Title and Index-Related UITableViewDataSource Methods; Insertion, Removal, and Reordering-Related UITableViewDataSource Methods; The Thing to Bear in Mind About dataSource Methods; All About indexPaths; The Model-View-Controller Design Pattern; Why Use the Model-View-Controller Pattern?
- MVC and iOSMVC and tableViews; Summary; Chapter 4 How the Cell Fits Together; Understanding the Anatomy of a UITableViewCell; Basic Structure of the Cell; Content and Accessory Views; Working with Standard Cell Types; Using UITableViewCellStyleDefault; Using UITableViewCellStyleValue1; Using UITableViewCellStyleValue2; Using UITableViewCellStyleSubtitle; Selecting a Default Style; Configuring the Default Cell's Content; textLabel; detailTextLabel; imageView; contentView; Formatting Text in Default Cell Types; Working with Accessory Views; Using UITableViewCellAccessoryDisclosureIndicator
- Using UITableViewCellAccessoryDetailDisclosureIndicator