Contents

Introduction

CHAPTER 1 HELLO IPHONE

An Introduction to iOS

Getting Started

Creating the Workspace

Creating the Project

Taking a Look Around

Running the Application

Examining the Files

Walking Through the Project

Modifying the Template

Modifying the Main View

Adding an Outlet

Adding the Text Field

Refining the Interface

Wrapping Up

CHAPTER 2 OBJECTIVE-C

The Objective-C Language

Nine Fundamental Building Blocks

C Data Types

C Data Structures

Enumerations

Operators

Functions

Objects

Methods

Protocols

Categories and Extensions

Memory Management

Objects and Retain Counts

Introducing ARC

Important Design Patterns

Model-View-Controller

Delegates

Notifications

Key-Value Coding

Key-Value Observing

Singletons

Blocks

Wrapping Up

CHAPTER 3 PRODUCTIVITY APPLICATION ARCHITECTURE

Understanding Productivity Apps

Creating the Project

Initial Housecleaning

Setting Additional Warnings

Adding Images

Configuring the Tab Bar

Building the Model

WeightEntry Class

The WeightHistory Class

Connecting the Model

Wrapping Up

CHAPTER 4 DEVELOPING VIEWS AND VIEW CONTROLLERS

Entering Weight Data

Set Autorotating and Autosizing

Adding Outlets and Actions

Creating the Unit Button

Changing Weight Units

Defining the View Delegate

Implementing the Controller

Passing Data Back and Forth

Rounding Corners with Core Animation

Showing Weight History

Responding to Changes in the Model

Editing the History View

Showing Detail Views

Designing the Static Table View

Wrapping Up

CHAPTER 5 DRAWING CUSTOM VIEWS

Building GraphStats

Building a Custom View

Performing Custom Drawing

Drawing a Single-Entry Trend Line

Drawing the Full Trend Line

Drawing the Reference Lines and Labels

Calculating a Weight Entry’s Coordinates

Finishing the Controller

Wrapping Up

CHAPTER 6 LOADING AND SAVING DATA

The iOS File System

Generating Directory Paths

Using Paths

Managing User Preferences

Saving to iCloud

iCloud Document Storage

iCloud Key-Value Storage

Saving Health Beat’s State

Preparing the Application

Creating a UIDocument Subclass

Loading iCloud Documents

Other Document State Changes

Saving User Defaults

Implementing iCloud Key-Value Storage

Adding System Settings Support

Enabling Undo Support

Wrapping Up

CHAPTER 7 CORE DATA

Introducing Core Data

Architecture Overview

Managed Object Model

Managed Object Context

Persistent Store Coordinator

iCloud Support

Core Data Performance

Converting Health Beat

Creating UIManagedDocument

Creating the Managed Object Model

Updating the View Controllers

Wrapping Up

CHAPTER 8 DESIGNING CUSTOM CONTROLS

Introducing GravityScribbler

Customizing the Interface’s Appearance

Separating Dynamic and Static Views

Creating a UIViewController Container

Customizing UIKit Controls

Responding to User Input

Gesture Recognizers

Core Motion

Exporting Images

Saving to the Photo Library

Sending MMS Messages

Sending Email Attachments

Sending Messages Using the Twitter API

Wrapping Up

CHAPTER 9 THE LAST MILE

The Final Touches

Application Artwork

Required Capabilities

Deployment Target

Localization

Accessibility

File Sharing

Building for Distribution

Submitting to the App Store

Wrapping Up

Index

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.145.87.161