IPhone iOS 5 Development Essentials
From Techotopia
Table of Contents | Next | |
Preface |
<google>BUY_IOS5</google>
Table of Contents
- Preface
- About iPhone iOS 5 Development Essentials
- The Anatomy of an iPhone 4S
- iPhone iOS 5 Architecture and SDK Frameworks
- Joining the Apple iOS Developer Program
- Installing Xcode 4 and the iOS 5 SDK
- Creating a Simple iPhone iOS 5 App
- Testing iOS 5 Apps on the iPhone – Developer Certificates and Provisioning Profiles
- Creating an iOS Development Certificate Signing Request
- Submitting the iOS Development Certificate Signing Request
- Installing an iOS Development Certificate
- Assigning Devices
- Creating an App ID
- Creating an iOS Development Provisioning Profile
- Enabling an iPhone Device for Development
- Associating an App ID with an App
- iOS and SDK Version Compatibility
- Installing an App onto a Device
- An Overview of the iPhone iOS 5 Application Development Architecture
- Creating an Interactive iOS 5 iPhone App
- Writing iOS 5 Code to Hide the iPhone Keyboard
- Understanding iOS 5 iPhone Views, Windows and the View Hierarchy
- iOS 5 iPhone Rotation, View Resizing and Layout Handling
- Creating an iOS 5 iPhone Multiview Application using the Tab Bar
- Creating a Simple iOS 5 iPhone Table View Application
- An Overview of the Table View
- The Table View Delegate and dataSource
- Table View Styles
- Table View Cell Styles
- Setting up the Project
- Adding the Table View Component
- Making the Delegate and dataSource Connections
- Implementing the dataSource
- Building and Running the Application
- Adding Table View Images and Changing Cell Styles
- Creating a Navigation based iOS 5 iPhone Application using TableViews
- Understanding the Navigation Controller
- An Overview of the Example
- Setting up the Project
- Reviewing the Project Files
- Adding the Root View Controller
- Creating the Navigation Controller
- Setting up the Data in the Root View Controller
- Writing Code to Display the Data in the Table View
- Creating the Second View Controller
- Connecting the Second View Controller to the Root View Controller
- Adding the Navigation Code
- Controlling the Navigation Controller Stack Programmatically
- Using Xcode Storyboarding (iPhone iOS 5)
- An Overview of Xcode Storyboarding
- Creating the Storyboard Example Project
- Accessing the Storyboard
- Adding Scenes to the Storyboard
- Configuring Storyboard Segues
- Configuring Storyboard Transitions
- Associating a View Controller with a Scene
- Triggering a Storyboard Segue Programmatically
- Performing Tasks before a Segue
- Implementing a Page based iOS 5 iPhone Application using UIPageViewController
- An Example iOS 5 iPhone UIPageViewController Application
- Using the iPhone iOS 5 UIPickerView and UIDatePicker Components
- An iOS 5 iPhone UIPickerView Example
- Working with iPhone iOS 5 Filesystem Directories
- The Application Documents Directory
- The Objective-C NSFileManager, NSFileHandle and NSData Classes
- Understanding Pathnames in Objective-C
- Creating an NSFileManager Instance Object
- Identifying the Current Working Directory
- Identifying the Documents Directory
- Identifying the Temporary Directory
- Changing Directory
- Creating a New Directory
- Deleting a Directory
- Listing the Contents of a Directory
- Getting the Attributes of a File or Directory
- Working with iPhone Files on iOS 5
- Creating an NSFileManager Instance
- Checking for the Existence of a File
- Comparing the Contents of Two Files
- Checking if a File is Readable/Writable/Executable/Deletable
- Moving/Renaming a File
- Copying a File
- Removing a File
- Creating a Symbolic Link
- Reading and Writing Files with NSFileManager
- Working with Files using the NSFileHandle Class
- Creating an NSFileHandle Object
- NSFileHandle File Offsets and Seeking
- Reading Data from a File
- Writing Data to a File
- Truncating a File
- iOS 5 iPhone Directory Handling and File I/O – A Worked Example
- Preparing an iOS 5 iPhone App to use iCloud Storage
- What is iCloud?
- iCloud Data Storage Services
- Preparing an Application to Use iCloud Storage
- Creating an iOS 5 iCloud enabled App ID
- Creating and Installing an iCloud Enabled Provisioning Profile
- Creating an iCloud Entitlements File
- Manually Creating the Entitlements File
- Defining the Ubiquity Container URL
- Managing iPhone Files using the iOS 5 UIDocument Class
- An Overview of the UIDocument Class
- Subclassing the UIDocument Class
- Conflict Resolution and Document States
- The UIDocument Example Application
- Creating a UIDocument Subclass
- Declaring the Outlets and Actions
- Designing the User Interface
- Implementing the Application Data Structure
- Implementing the contentsForType Method
- Implementing the loadFromContents Method
- Loading the Document at App Launch
- Saving Content to the Document
- Testing the Application
- Using iCloud Storage in an iOS 5 iPhone Application
- iCloud Usage Guidelines
- Preparing the iCloudStore Application for iCloud Access
- Configuring the View Controller
- Declaring the UBUIQUITY_CONTAINER_URL Constant
- Implementing the viewDidLoad Method
- Implementing the metadataQueryDidFinishGathering: Method
- Implementing the saveDocument Method
- Enabling iCloud Document and Data Storage on an iPhone
- Running the iCloud Application
- Reviewing and Deleting iCloud Based Documents
- Making a Local File Ubiquitous
- Synchronizing iPhone iOS 5 Key-Value Data using iCloud
- An Overview of iCloud Key-Value Data Storage
- Sharing Data Between Applications
- Data Storage Restrictions
- Conflict Resolution
- Receiving Notification of Key-Value Changes
- An iCloud Key-Value Data Storage Example
- Enabling the Application for iCloud Key Value Data Storage
- Implementing the View Controller
- Modifying the viewDidLoad Method
- Implementing the Notification Method
- Implementing the saveData Method
- Designing the User Interface
- iOS 5 iPhone Data Persistence using Archiving
- iOS 5 iPhone Database Implementation using SQLite
- What is SQLite?
- Structured Query Language (SQL)
- Trying SQLite on MacOS X
- Preparing an iPhone Application Project for SQLite Integration
- Key SQLite Functions
- Declaring a SQLite Database
- Opening or Creating a Database
- Preparing and Executing a SQL Statement
- Creating a Database Table
- Extracting Data from a Database Table
- Closing a SQLite Database
- An Example SQLite based iOS 5 iPhone Application
- About the Example SQLite iPhone Application
- Creating and Preparing the SQLite Application Project
- Importing sqlite3.h and declaring the Database Reference
- Creating the Outlets and Actions
- Releasing Memory
- Creating the Database and Table
- Implementing the Code to Save Data to the SQLite Database
- Implementing Code to Extract Data from the SQLite Database
- Designing the User Interface
- Building and Running the Application
- Working with iOS 5 iPhone Databases using Core Data
- The Core Data Stack
- Managed Objects
- Managed Object Context
- Managed Object Model
- Persistent Store Coordinator
- Persistent Object Store
- Defining an Entity Description
- Obtaining the Managed Object Context
- Getting an Entity Description
- Creating a Managed Object
- Getting and Setting the Attributes of a Managed Object
- Fetching Managed Objects
- Retrieving Managed Objects based on Criteria
- An iOS 5 iPhone Core Data Tutorial
- The iPhone Core Data Example Application
- Creating a Core Data based iPhone Application
- Creating the Entity Description
- Adding a View Controller
- Adding Actions and Outlets to the View Controller
- Designing the User Interface
- Saving Data to the Persistent Store using Core Data
- Retrieving Data from the Persistent Store using Core Data
- Releasing Memory
- Building and Running the Example Application
- An Overview of iOS 5 iPhone Multitouch, Taps and Gestures
- An Example iOS 5 iPhone Touch, Multitouch and Tap Application
- The Example iOS 5 iPhone Tap and Touch Application
- Creating the Example iOS Touch Project
- Creating the Outlets
- Designing the user Interface
- Enabling Multitouch on the View
- Implementing the touchesBegan Method
- Implementing the touchesMoved Method
- Implementing the touchesEnded Method
- Getting the Coordinates of a Touch
- Building and Running the Touch Example Application
- Detecting iOS 5 iPhone Touch Screen Gesture Motions
- Identifying iPhone Gestures using iOS 5 Gesture Recognizers
- The UIGestureRecognizer Class
- Recognizer Action Messages
- Discrete and Continuous Gestures
- Obtaining Data from a Gesture
- Recognizing Tap Gestures
- Recognizing Pinch Gestures
- Detecting Rotation Gestures
- Recognizing Pan and Dragging Gestures
- Recognizing Swipe Gestures
- Recognizing Long Touch (Touch and Hold) Gestures
- An iPhone iOS 5 Gesture Recognition Tutorial
- Drawing iOS 5 iPhone 2D Graphics with Quartz
- An iOS 5 iPhone Graphics Drawing Tutorial using Quartz 2D
- The iOS iPhone Drawing Example Application
- Creating the New Project
- Creating the UIView Subclass
- Locating the drawRect Method in the UIView Subclass
- Drawing a Line
- Drawing Paths
- Drawing a Rectangle
- Drawing an Ellipse or Circle
- Filling a Path with a Color
- Drawing a Cubic Bézier Curve
- Drawing a Quadratic Bézier Curve
- Dashed Line Drawing
- Drawing an Image into a Graphics Context
- Image Filtering with the Core Image Framework
- Basic iOS 5 iPhone Animation using Core Animation
- UIView Core Animation Blocks
- Understanding Animation Curves
- Receiving Notification of Animation Completion
- Performing Affine Transformations
- Combining Transformations
- Creating the Animation Example Application
- Implementing the Interface File
- Drawing in the UIView
- Detecting Screen Touches and Performing the Animation
- Building and Running the Animation Application
- Integrating iAds into an iOS 5 iPhone App
- iOS iPhone Advertising Options
- iAds Advertisement Formats
- Basic Rules for the Display of iAds
- Creating an Example iAds iPhone Application
- Adding the iAds Framework to the Xcode Project
- Configuring the View Controller
- Designing the User Interface
- Creating the Banner Ad
- Displaying the Ad
- Changing Ad Format during Device Rotation
- Implementing the Delegate Methods
- bannerViewActionShouldBegin
- bannerViewActionDidFinish
- bannerView:didFailToReceiveAdWithError
- bannerViewWillLoadAd
- An Overview of iOS 5 iPhone Multitasking
- Scheduling iOS 5 iPhone Local Notifications
- Getting iPhone Location Information using the iOS 5 Core Location Framework
- An Example iOS 5 iPhone Location Application
- Creating the Example iOS 5 iPhone Location Project
- Adding the Core Location Framework to the Project
- Configuring the View Controller
- Designing the User Interface
- Creating the CLLocationManager Object
- Implementing the Action Method
- Implementing the Application Delegate Methods
- Releasing Memory
- Building and Running the iPhone Location Application
- Working with Maps on the iPhone with MapKit and the MKMapView Class
- About the MapKit Framework
- Understanding Map Regions
- About the iPhone MKMapView Tutorial
- Creating the iPhone Map Tutorial
- Adding the MapKit Framework to the Xcode Project
- Declaring an Outlet for the MapView
- Creating the MKMapView and Connecting the Outlet
- Adding the Tool Bar Items
- Changing the MapView Region
- Changing the Map Type
- Testing the iPhone MapView Application
- Updating the Map View based on User Movement
- Adding Basic Annotations to a Map View
- Accessing the iPhone Camera and Photo Library
- An Example iOS 5 iPhone Camera Application
- Integrating Twitter into iPhone iOS 5 Applications
- An Example iPhone iOS 5 TWTeetComposeViewController Twitter Application
- Preparing and Submitting an iOS 5 iPhone Application to the App Store
- Generating an iOS Distribution Certificate Signing Request
- Submitting the Certificate Signing Request
- Installing the Distribution Certificate
- Generating an App Store Distribution Provisioning Profile
- Adding an Icon to the Application
- Archiving the Application for Distribution
- Configuring the Application in iTunes Connect