Pro iOS Table Views for iPhone iPad and iPod Touch 1st Edition by Tim Duckett – Ebook PDF Instant Download/Delivery: 1430233494, 9781430233497
Full download Pro iOS Table Views for iPhone iPad and iPod Touch 1st Edition after payment

Product details:
ISBN 10: 1430233494
ISBN 13: 9781430233497
Author: Tim Duckett
Pro iOS Table Views for iPhone iPad and iPod Touch 1st Table of contents:
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 UITableViews
Creating 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 UITableView
Getting 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 iOS
MVC 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
Using UITableViewCellAccessoryCheckmark
Using UITableViewCellAccessoryNone
Setting the Accessory View Type
Using an Accessory View to Show Cell Selection State
Creating Custom Accessory Views
Creating and Reusing Cells
Memory Limitations
Speed and Smoothness
Just-in-Time Creation and Recycling
The Table View’s “Conveyor Belt”
How the “Conveyor Belt” Process Is Built in Code
Identifying Cells with the cellIdentifier
Side Effects of Cell Reuse and Caching
Summary
Chapter 5 Using Tables for Navigation
The Navigation Controller Interface Pattern
Introducing the UINavigationController
Creating a Navigation Controller App
Creating the Name Class
Creating Some Dummy Data
Connecting Up the Table View
Feeding the Table with Data
Building the Detail View
Implementing the Navigation Controller
How the Navigation Controller Is Wired Up
Linking the Navigation Controller and Detail Views Together
Wiring Up the Detail
Summary
Chapter 6 Indexing, Grouping, and Sorting
Using Indexed Tables
Using Sectioned and Grouped Tables
Creating a Simple Indexed Table
Setting Up the Basic Table
Creating the Source Data
Feeding the Table with Data
Returning the Number of Sections in the Table
Creating the Title for the Section Header
Building the Index
Matching the Index to the Section
Building Practical Sectioned Tables
Creating the Data for a Table with Sections and Indexes
Arrays of Arrays
UILocalizedIndexedCollation
Creating the All-Singing, All-Dancing Table
Creating the App from a Template
Creating Some Data in a plist File
Using the plist in Code
Sorting Out the User Interface
Extending the ViewController Class
Sorting the Data
Configuring the Sections
Creating Table and Section Header and Footer Views
Moving the Table Programmatically
scrollToRowAtIndexPath:atScrollPosition:animated:
scrollToNearestSelectedRowAtScrollPosition:animated:
selectRowAtIndexPath:animated:scrollPosition:
Finding the Current Scroll Position in the Table
Summary
Chapter 7 Selecting and Editing Table Content
A Recap of the Model-View-Controller Pattern
Why the Model-View-Controller Pattern Is Important
Cell Selection
What Selection Is For
Controlling Selection
Global Selection
Understanding How Selection Works
Managing Row-Specific Selection
Visualizing Selection
Customizing Selection
Handling Deselection
Visualizing Persistent Selection
Using Selection Marks to Indicate Multiple Selections
Working with Multiple Row Selections
Visualizing Multiple Row Selection
Using the Cell’s Accessory View to Show a Selection Mark
Using the Cell’s Accessory View to Show a Custom View
Showing Selection in Other Ways
Handling Deselection After Multiple Selection
Selection Dos and Don’ts
Responding to Selections with More Detail
Design Patterns and UITableViews
Read
Create
Update
Delete
Inserting and Deleting Rows
Putting the Table into Editing Mode
Controlling Whether Rows Can Be Edited
Controlling Each Row’s Editing Style
Dealing with Row Deletions
“Swipe”-style Row Deletions
Dealing with Row Insertions
Amending the Data Model
Working with the New Row
Rearranging Tables
Entering Editing Mode
Checking Whether Rows Can Be Moved
Moving Rows Around
Can the Row Be Moved to Here?
Updating the Model
Enabling Batch Insertion and Deletion
Summary
Chapter 8 Improving the Look of Cells
Customizing Cells
Which Method Should I Use?
Adding Subviews to the Cell’s contentView
Creating the Elements in the Cell
Updating the Content
Tagging Controls in the Cell
Casting controls
Putting It all Together
Creating Custom Cells Visually Using Interface Builder
The Stages of Creating Cells Visually
Creating a New NIB File
Setting Up the Cell’s Identifier
Creating the Cell’s Content
Assigning Tags to Controls
Referencing Tagged Controls
Creating Cells at Runtime
New in iOS 5!
Putting It All Together
Handling Cell Resizing
Handling Editing
Reacting to Editing
Autoresizing Masks—Springs and Struts
Autoresizing Masks—Widths and Heights
Setting Struts and Springs in Code
Handling Rotation Events
Orientation Types
Summary
Chapter 9 Creating Custom Cells with Subclasses
Why Create a Custom Cell Subclass?
The Process of Creating Custom Cells
Designing Your Cell
Creating the Class for the Custom Cell
Creating the Subclasses
Building the Cell in Interface Builder
Creating the nib File
Laying Out Controls in Interface Builder
Conforming the Cell to the Custom Class
Link Up Custom Controls
Creating the EvenCell
Setting the Cell Heights
Creating Instances of the Custom Cells
Some Refactoring
Handling Selection in Custom Cells
Drawing Cells in Code with layoutSubviews
Overriding the layoutSubviews Method
Building the Cell in Code with the contentView
Creating the Cell Subclasses
Setting Up the Subclass Properties
Building the Cells
Managing Selections
Creating the Cells
Debugging Layers
Summary
Chapter 10 Improving the Cell’s Interaction
Embedding Custom Controls into Cells
Reacting to Individual Controls
A Practical Example of Controls in Cells
Adding Gestures to Cells
Swiping in Cells
How Swiping Works
Creating the Swipe-to-Reveal Table
Creating the tableView
Creating the UITableViewCell Subclass
Responding to the Gestures
Handling Rotation
Tidying Up the Swipe Functionality
Keeping Track of the Currently Swiped Row
Creating the Delegate Protocol
Set Up the Delegate Protocol
Updating the SwipeCell Class
Updating the SwipeTableController
Resetting Swiped Cells When the Table Scrolls
Adding Pull-to-Refresh to Table Views
How Pull-to-Refresh Works
Implementing Pull-to-Refresh
Searching in Tables
How the UISearchDisplayController Works
Adding the Search Bar Protocols
Adding the Search Bar to the Table
(Optionally) Setting Up the Scopes
Adding the Delegate and Search Methods
Updating Methods with tableView Parameters
More Details on Search Display Controllers
Happy, Healthy Tables
Are the Cells Cached?
Do Your Table Cells Have Varying Heights?
Cut the Cost of Compositing
Checking Transparency with Instruments
Summary
Chapter 11 Table Views on iPad
The UISplilViewConlrolier
Creating a UISplitViewController App
Creating a New Application
Creating the View Controllers for Each Side
Setting up the Split-View Controller
Handling Rotation
Linking the List with the Detail
Defining the UpdateSplitDetailViewProtocol
Setting Up LeftTableViewController with a Delegate Property
Connecting Up the Delegate
Calling the Delegate Method
Completing the Protocol Method
People also search for Pro iOS Table Views for iPhone iPad and iPod Touch 1st:
pro ios table views for iphone ipad and ipod touch
ipad view iphone 7
ipad view for ios
ipad view for iphone
ipad views
Tags:
Tim Duckett,Pro iOS,iPhone,iPad,iPod


