Home Page Icon
Home Page
Table of Contents for
Table of Contents
Close
Table of Contents
by Steven F. Daniel
Xcode 4 Cookbook
Xcode 4 Cookbook
Table of Contents
Xcode 4 Cookbook
Credits
About the Author
Acknowledgement
About the Reviewers
www.PacktPub.com
Support files, eBooks, discount offers and more
Why Subscribe?
Free Access for Packt account holders
Preface
What this book covers
What you need for this book
Who this book is for
Conventions
Reader feedback
Customer support
Downloading the example code
Errata
Piracy
Questions
1. Getting and Installing the iOS SDK Development Tools
Introduction
Downloading and installing the iOS SDK
Getting ready
How to do it...
How it works...
There's more…
See also
Using Xcode to create an iOS project
Getting ready
How to do it...
How it works...
main.m
There's more…
Understanding application delegates
Understanding the ViewController class
Understanding ViewController.xib
Understanding HelloWorld-info.plist
See also
Using Interface Builder to create the user interface
How to do it…
How it works…
There's more…
See also
Building the user interface for our application
Getting ready
How to do it…
How it works…
See also
Creating outlets to Interface Builder objects
Getting ready
How to do it…
How it works…
There's more…
See also
Creating actions that respond to user actions
Getting ready
How to do it…
How it works…
There's more…
See also
Compiling your project
Getting ready
How to do it…
Using the iOS Simulator to test your applications
Getting ready
How to do it…
How it works…
See also
Configuring and using compiler directives
Getting ready
How to do it...
How it works…
There's more…
See also
Debugging your iOS applications using Xcode
Getting ready
How to do it…
How it works…
See Also
Using the Clang Static Analyzer to examine your code
Getting ready
How to do it…
How it works…
See also
2. User Interfaces – Creating the UI
Introduction
Adding and customizing views
Getting ready
How to do it...
How it works…
There's more…
See also
Using labels to display text
Getting ready
How to do it...
How it works…
There's more…
See also
Obtaining user input through the use of buttons
Getting ready
How to do it...
How it works…
There's more…
See also
Displaying an image within the view
Getting ready
How to do it...
How it works…
There's more…
See also
Displaying and editing text
Getting ready
How to do it...
How it works…
There's more…
See also
Using the iOS device keyboard
Getting ready
How to do it...
How it works…
See also
Displaying the progress to the user
Getting ready
How to do it...
How it works…
There's more…
See also
Adding a toolbar to a view
Getting ready
How to do it...
How it works…
There's more…
See also
Fading a view in and out
Getting ready
How to do it...
How it works…
See also
Creating a custom table view controller
Getting ready
How to do it...
How it works…
See also
Adding a table view to a view controller
Getting ready
How to do it...
How it works…
See also
Handling different iOS devices
Getting ready
How to do it...
How it works…
See also
3. Using Storyboards
Introduction
Configuring storyboards for a project
Getting ready
How to do it...
How it works...
There's more…
See also
Creating a Twitter application
Getting ready
How to do it...
How it works...
See also
Creating storyboard scenes
Getting ready
How to do it...
How it works...
See also
Configuring storyboard scenes
Getting ready
How to do it…
How it works...
See also
Applying transitions to storyboards
Getting ready
How to do it…
How it works...
See also
Composing a tweet
Getting ready
How to do it…
How it works...
There's more…
Using the UIActivityViewController class
Using the SLComposeViewController class
See also
Adding photos to a tweet
Getting ready
How to do it…
How it works...
There's more...
See also
Preparing transition to another view controller
Getting ready
How to do it…
How it works...
See also
Presenting storyboard view controllers programmatically
Getting ready
How to do it…
How it works...
There's more…
See also
4. Using Xcode Instruments
Introduction
Introducing Xcode Instruments
Getting ready
How to do it...
How it works...
There's more…
See also
Tracing iOS applications
Getting ready
How to do it...
How it works...
See also
Running and profiling an iOS project
Getting ready
How to do it...
How it works...
There's more…
See also
Detecting virtual memory faults
Getting ready
How to do it...
How it works...
See also
Detecting memory leaks
Getting ready
How to do it...
How it works...
See also
Handling runtime errors
Getting ready
How to do it...
How it works...
There's more...
See also
Handling compile-time errors
Getting ready
How to do it...
How it works...
See also
Adding and configuring Instruments
Getting ready
How to do it...
How it works...
See also
5. Working with the Location Services and the MapKit Frameworks
Introduction
Adding the CoreLocation and MapKit frameworks
Getting ready
How to do it...
How it works...
See also
Building a simple CoreLocation application
Getting ready
How to do it...
How it works...
See also
Determining the current GPS location
Getting ready
How to do it...
How it works...
There's more…
See also
Adding and working with the MapView control
Getting ready
How to do it...
How it works...
See also
Adding overlay regions to maps
Getting ready
How to do it...
How it works...
See also
Adding annotation placeholders to the map
Getting ready
How to do it…
How it works...
There's more…
See also
Reversing geocode address information
Getting ready
How to do it...
How it works...
There's more…
See also
Working with the different map types
Getting ready
How to do it...
How it works...
See also
6. Storing Documents within the Cloud
Introduction
Storing and using documents within iCloud
Getting ready
How to do it...
How it works...
See also
Working with the iCloud storage APIs
Getting ready
How to do it...
Using iCloud document storage
Storing key-value data in iCloud
How it works...
See also
Detecting file version conflicts within iCloud
Getting ready
How to do it...
How it works...
See also
Building the iCloud application
Getting ready
How to do it...
How it works...
See also
Requesting entitlements for iCloud storage
Getting ready
How to do it...
How it works...
Configuring iOS devices to use iCloud
Getting ready
How to do it...
How it works...
7. Working with Different Multimedia Resources
Introduction
Selecting images and video from the camera roll
Getting ready
How to do it...
How it works...
See also
Capturing media with the camera
Getting ready
How to do it...
How it works...
See also
Playing video with Apple TV integration
Getting ready
How to do it...
How it works...
See also
Playing music using the MediaPlayer framework
Getting ready
How to do it...
How it works...
See also
Using the iOS device's microphone to record
Getting ready
How to do it...
How it works...
See also
Animating views
Getting ready
How to do it...
How it works...
See also
Drawing customized text
Getting ready
How to do it...
How it works...
See also
Drawing lines and curves
Getting ready
How to do it...
How it works...
See also
Drawing and filling shapes
Getting ready
How to do it...
How it works...
See also
Applying color effects using Core Image
Getting ready
How to do it...
How it works...
See also
Applying transition effects
Getting ready
How to do it...
How it works...
See also
8. Working with the CoreData and GameKit Frameworks
Introduction
Adding the GameKit and MessageUI frameworks
Getting ready
How to do it...
How it works...
See also
Building the Core Data data model
Getting ready
How to do it...
How it works...
See also
Creating the Core Data model files
Getting ready
How to do it...
How it works...
There's more…
See also
Adding and configuring the Storyboard
Getting ready
How to do it...
How it works...
There's more…
See also
Creating the Books Library user interface
Getting ready…
How to do it...
How it works...
See also
Displaying data within the Table View
Getting ready
How to do it...
How it works...
See also
Inserting data within our Core Data data model
Getting ready
How to do it...
How it works...
See also
Delete an item from the Table View using Core Data
Getting ready
How to do it...
How it works...
Reordering rows within a Table View
Getting ready
How to do it...
How it works...
There's more…
See also
Filtering and searching for data within a Table View
Getting ready
How to do it...
How it works...
See also
Working with the different keyboard styles
Getting Ready
How to do it...
How it works...
There's more…
See also
Transferring data to another device using bluetooth
Getting ready
How to do it...
How it works...
See also
Implementing e-mail messaging
Getting ready
How to do it...
How it works...
There's more…
See also
9. Creating a Social Networking App with the Facebook iOS SDK
Introduction
Downloading the Facebook iOS SDK
Getting ready
How to do it...
How it works...
There's more…
See also
Registering your iOS applications with Facebook
Getting ready
How to do it...
How it works...
See also
Building a simple social networking application
Getting ready
How to do it…
How it works...
See also
Adding the Facebook SDK and dependencies to your project
Getting ready
How to do it...
How it works...
See also
Implementing the Single Sign On (SSO) feature
Getting ready
How to do it...
How it works...
There's more…
See also
Implementing the View Controller class
Getting ready
How to do it...
How it works...
See also
Requesting additional Facebook permissions
Getting ready
How to do it...
How it works...
There's more…
See also
Using the Graph API to read JSON data
Getting ready
How to do it...
How it works...
See also
Integrating with the Facebook social channels
Getting ready
How to do it...
How it works...
There's more…
See also
Handling Facebook errors within your application
Getting ready
How to do it...
How it works...
There's more…
See also
10. Packaging and Deploying Your Application
Introduction
Setting up your iOS development team
Getting ready
How to do it...
How it works...
See also
Creating the iOS development certificate
Getting ready
How to do it…
How it works...
See also
Obtaining the development certificate from Apple
Getting ready
How to do it…
How it works...
See also
Registering your iOS devices for testing
Getting ready
How to do it...
How it works...
See also
Creating your application App IDs
Getting ready
How to do it...
How it works...
See also
Creating the development provisioning profiles
Getting ready
How to do it...
How it works...
See also
Using the provisioning profile to install the app on an iOS device
Getting ready
How to do it...
How it works...
See also
Preparing an application for submission to the App Store using iTunes Connect
Getting ready
How to do it...
How it works...
There's more...
See also
Archiving and submitting apps using Xcode 4
Getting ready
How to do it...
How it works...
See also
A. Exploring the MultiTouch Interface
Introduction
Sensing the movement and device orientation
Getting ready
How to do it...
How it works…
See also
Using the shake gesture with the touch interface
Getting ready
How to do it...
How it works…
There's more…
See also
Detecting device touches with the touch interface
Getting ready
How to do it...
How it works…
There's more…
See also
Sensing movement with the accelerometer input
Getting ready
How to do it...
How it works…
There's more…
Understanding the core motion framework
See also
Working with the iOS device gyroscope
Getting ready
How to do it...
How it works…
See also
Index
Search in book...
Toggle Font Controls
Playlists
Add To
Create new playlist
Name your new playlist
Playlist description (optional)
Cancel
Create playlist
Sign In
Email address
Password
Forgot Password?
Create account
Login
or
Continue with Facebook
Continue with Google
Sign Up
Full Name
Email address
Confirm Email Address
Password
Login
Create account
or
Continue with Facebook
Continue with Google
Prev
Previous Chapter
Cover
Next
Next Chapter
Xcode 4 Cookbook
Table of Contents
Xcode 4 Cookbook
Credits
About the Author
Acknowledgement
About the Reviewers
www.PacktPub.com
Support files, eBooks, discount offers and more
Why Subscribe?
Free Access for Packt account holders
Preface
What this book covers
What you need for this book
Who this book is for
Conventions
Reader feedback
Customer support
Downloading the example code
Errata
Piracy
Questions
1. Getting and Installing the iOS SDK Development Tools
Introduction
Downloading and installing the iOS SDK
Getting ready
How to do it...
How it works...
There's more…
See also
Using Xcode to create an iOS project
Getting ready
How to do it...
How it works...
main.m
There's more…
Understanding application delegates
Understanding the ViewController class
Understanding ViewController.xib
Understanding HelloWorld-info.plist
See also
Using Interface Builder to create the user interface
How to do it…
How it works…
There's more…
See also
Building the user interface for our application
Getting ready
How to do it…
How it works…
See also
Creating outlets to Interface Builder objects
Getting ready
How to do it…
How it works…
There's more…
See also
Creating actions that respond to user actions
Getting ready
How to do it…
How it works…
There's more…
See also
Compiling your project
Getting ready
How to do it…
Using the iOS Simulator to test your applications
Getting ready
How to do it…
How it works…
See also
Configuring and using compiler directives
Getting ready
How to do it...
How it works…
There's more…
See also
Debugging your iOS applications using Xcode
Getting ready
How to do it…
How it works…
See Also
Using the Clang Static Analyzer to examine your code
Getting ready
How to do it…
How it works…
See also
2. User Interfaces – Creating the UI
Introduction
Adding and customizing views
Getting ready
How to do it...
How it works…
There's more…
See also
Using labels to display text
Getting ready
How to do it...
How it works…
There's more…
See also
Obtaining user input through the use of buttons
Getting ready
How to do it...
How it works…
There's more…
See also
Displaying an image within the view
Getting ready
How to do it...
How it works…
There's more…
See also
Displaying and editing text
Getting ready
How to do it...
How it works…
There's more…
See also
Using the iOS device keyboard
Getting ready
How to do it...
How it works…
See also
Displaying the progress to the user
Getting ready
How to do it...
How it works…
There's more…
See also
Adding a toolbar to a view
Getting ready
How to do it...
How it works…
There's more…
See also
Fading a view in and out
Getting ready
How to do it...
How it works…
See also
Creating a custom table view controller
Getting ready
How to do it...
How it works…
See also
Adding a table view to a view controller
Getting ready
How to do it...
How it works…
See also
Handling different iOS devices
Getting ready
How to do it...
How it works…
See also
3. Using Storyboards
Introduction
Configuring storyboards for a project
Getting ready
How to do it...
How it works...
There's more…
See also
Creating a Twitter application
Getting ready
How to do it...
How it works...
See also
Creating storyboard scenes
Getting ready
How to do it...
How it works...
See also
Configuring storyboard scenes
Getting ready
How to do it…
How it works...
See also
Applying transitions to storyboards
Getting ready
How to do it…
How it works...
See also
Composing a tweet
Getting ready
How to do it…
How it works...
There's more…
Using the UIActivityViewController class
Using the SLComposeViewController class
See also
Adding photos to a tweet
Getting ready
How to do it…
How it works...
There's more...
See also
Preparing transition to another view controller
Getting ready
How to do it…
How it works...
See also
Presenting storyboard view controllers programmatically
Getting ready
How to do it…
How it works...
There's more…
See also
4. Using Xcode Instruments
Introduction
Introducing Xcode Instruments
Getting ready
How to do it...
How it works...
There's more…
See also
Tracing iOS applications
Getting ready
How to do it...
How it works...
See also
Running and profiling an iOS project
Getting ready
How to do it...
How it works...
There's more…
See also
Detecting virtual memory faults
Getting ready
How to do it...
How it works...
See also
Detecting memory leaks
Getting ready
How to do it...
How it works...
See also
Handling runtime errors
Getting ready
How to do it...
How it works...
There's more...
See also
Handling compile-time errors
Getting ready
How to do it...
How it works...
See also
Adding and configuring Instruments
Getting ready
How to do it...
How it works...
See also
5. Working with the Location Services and the MapKit Frameworks
Introduction
Adding the CoreLocation and MapKit frameworks
Getting ready
How to do it...
How it works...
See also
Building a simple CoreLocation application
Getting ready
How to do it...
How it works...
See also
Determining the current GPS location
Getting ready
How to do it...
How it works...
There's more…
See also
Adding and working with the MapView control
Getting ready
How to do it...
How it works...
See also
Adding overlay regions to maps
Getting ready
How to do it...
How it works...
See also
Adding annotation placeholders to the map
Getting ready
How to do it…
How it works...
There's more…
See also
Reversing geocode address information
Getting ready
How to do it...
How it works...
There's more…
See also
Working with the different map types
Getting ready
How to do it...
How it works...
See also
6. Storing Documents within the Cloud
Introduction
Storing and using documents within iCloud
Getting ready
How to do it...
How it works...
See also
Working with the iCloud storage APIs
Getting ready
How to do it...
Using iCloud document storage
Storing key-value data in iCloud
How it works...
See also
Detecting file version conflicts within iCloud
Getting ready
How to do it...
How it works...
See also
Building the iCloud application
Getting ready
How to do it...
How it works...
See also
Requesting entitlements for iCloud storage
Getting ready
How to do it...
How it works...
Configuring iOS devices to use iCloud
Getting ready
How to do it...
How it works...
7. Working with Different Multimedia Resources
Introduction
Selecting images and video from the camera roll
Getting ready
How to do it...
How it works...
See also
Capturing media with the camera
Getting ready
How to do it...
How it works...
See also
Playing video with Apple TV integration
Getting ready
How to do it...
How it works...
See also
Playing music using the MediaPlayer framework
Getting ready
How to do it...
How it works...
See also
Using the iOS device's microphone to record
Getting ready
How to do it...
How it works...
See also
Animating views
Getting ready
How to do it...
How it works...
See also
Drawing customized text
Getting ready
How to do it...
How it works...
See also
Drawing lines and curves
Getting ready
How to do it...
How it works...
See also
Drawing and filling shapes
Getting ready
How to do it...
How it works...
See also
Applying color effects using Core Image
Getting ready
How to do it...
How it works...
See also
Applying transition effects
Getting ready
How to do it...
How it works...
See also
8. Working with the CoreData and GameKit Frameworks
Introduction
Adding the GameKit and MessageUI frameworks
Getting ready
How to do it...
How it works...
See also
Building the Core Data data model
Getting ready
How to do it...
How it works...
See also
Creating the Core Data model files
Getting ready
How to do it...
How it works...
There's more…
See also
Adding and configuring the Storyboard
Getting ready
How to do it...
How it works...
There's more…
See also
Creating the Books Library user interface
Getting ready…
How to do it...
How it works...
See also
Displaying data within the Table View
Getting ready
How to do it...
How it works...
See also
Inserting data within our Core Data data model
Getting ready
How to do it...
How it works...
See also
Delete an item from the Table View using Core Data
Getting ready
How to do it...
How it works...
Reordering rows within a Table View
Getting ready
How to do it...
How it works...
There's more…
See also
Filtering and searching for data within a Table View
Getting ready
How to do it...
How it works...
See also
Working with the different keyboard styles
Getting Ready
How to do it...
How it works...
There's more…
See also
Transferring data to another device using bluetooth
Getting ready
How to do it...
How it works...
See also
Implementing e-mail messaging
Getting ready
How to do it...
How it works...
There's more…
See also
9. Creating a Social Networking App with the Facebook iOS SDK
Introduction
Downloading the Facebook iOS SDK
Getting ready
How to do it...
How it works...
There's more…
See also
Registering your iOS applications with Facebook
Getting ready
How to do it...
How it works...
See also
Building a simple social networking application
Getting ready
How to do it…
How it works...
See also
Adding the Facebook SDK and dependencies to your project
Getting ready
How to do it...
How it works...
See also
Implementing the Single Sign On (SSO) feature
Getting ready
How to do it...
How it works...
There's more…
See also
Implementing the View Controller class
Getting ready
How to do it...
How it works...
See also
Requesting additional Facebook permissions
Getting ready
How to do it...
How it works...
There's more…
See also
Using the Graph API to read JSON data
Getting ready
How to do it...
How it works...
See also
Integrating with the Facebook social channels
Getting ready
How to do it...
How it works...
There's more…
See also
Handling Facebook errors within your application
Getting ready
How to do it...
How it works...
There's more…
See also
10. Packaging and Deploying Your Application
Introduction
Setting up your iOS development team
Getting ready
How to do it...
How it works...
See also
Creating the iOS development certificate
Getting ready
How to do it…
How it works...
See also
Obtaining the development certificate from Apple
Getting ready
How to do it…
How it works...
See also
Registering your iOS devices for testing
Getting ready
How to do it...
How it works...
See also
Creating your application App IDs
Getting ready
How to do it...
How it works...
See also
Creating the development provisioning profiles
Getting ready
How to do it...
How it works...
See also
Using the provisioning profile to install the app on an iOS device
Getting ready
How to do it...
How it works...
See also
Preparing an application for submission to the App Store using iTunes Connect
Getting ready
How to do it...
How it works...
There's more...
See also
Archiving and submitting apps using Xcode 4
Getting ready
How to do it...
How it works...
See also
A. Exploring the MultiTouch Interface
Introduction
Sensing the movement and device orientation
Getting ready
How to do it...
How it works…
See also
Using the shake gesture with the touch interface
Getting ready
How to do it...
How it works…
There's more…
See also
Detecting device touches with the touch interface
Getting ready
How to do it...
How it works…
There's more…
See also
Sensing movement with the accelerometer input
Getting ready
How to do it...
How it works…
There's more…
Understanding the core motion framework
See also
Working with the iOS device gyroscope
Getting ready
How to do it...
How it works…
See also
Index
Add Highlight
No Comment
..................Content has been hidden....................
You can't read the all page of ebook, please click
here
login for view all page.
Day Mode
Cloud Mode
Night Mode
Reset