Book description
Essential Skills--Made Easy!
Develop, test, and debug iPhone, iPad, and iPod touch applications with help from this practical resource. iOS SDK Programming: A Beginner's Guide shows you how to use Objective-C and Apple's new Xcode 4 development environment with an integrated, easy-to-use Interface Builder. You'll learn which UIView subclasses to use when laying out an iOS app and master all of the iOS user interface controls. Setting application preferences and storing application data are also covered. The book explains how to integrate multimedia into your apps and develop universal apps that run on the iPhone, iPod touch, and iPad. You'll learn how to take advantage of the iPad's larger display and the new features of iOS 4.2. By the end of this book, you'll be ready to create the next bit hit in the iTunes App Store!
Designed for Easy Learning:
- Key Skills & Concepts--Chapter-opening lists of specific skills covered in the chapter
- Try This--Hands-on exercises that show you how to apply your skills
- Notes--Extra information related to the topic being covered
- Tips--Helpful reminders or alternate ways of doing things
- Cautions--Errors and pitfalls to avoid
- Annotated Syntax--Example code with commentary that describes the programming techniques being illustrated
Table of contents
- Cover page
- iOS SDK Programming: A Beginner’s Guide
- Copyright Page
- Dedication
- Contents
- Acknowledgments
- Introduction
- 1 The iOS Software Development Kit (SDK)
-
2 A C Refresher
- C Command-Line Programs
- Try This: Creating a Simple C Program Using Xcode
- C Comments
- Understanding Headers, Import, and Include
- Try This: Creating a Header File
- Preprocessor Statements
- Try This: Using Preprocessor Statements
- Data Types and Operators
- Control, Functions, and Conditional Statements
- Arrays and Structures
- Functions
- The printf Statement
- Pointers
- Try This: Using Pointers
- Dereferencing a Pointer
- Pointers and Arrays
- Try This: Using an Array with Pointers
- Summary
-
3 Just Enough Objective-C: Part One
- Objective-C Classes and Objects
- Class Interface and Implementation
- Try This: Generating an Objective-C Class’ Interface and Implementation
- The @interface and @implementation Compiler Directives
- Method Declaration and Definition
- Try This: Adding SayHello to the Simple Class
- Interface Anatomy
- Implementation Anatomy
- Public, Private, and Protected Instance Variables
- Understanding Simple Messaging
- Using self in a Message
- Nested Arguments
- Class and Instance Methods
- Try This: Adding sayGoodBye as a Class Method
- The alloc and init Methods
- Managing Memory Using Retain and Release
- Try This: Using Manual Memory Management
- Instance Variables and Memory
- Managing Memory Using Autorelease
- Summary
- 4 Just Enough Objective-C: Part Two
- 5 Deploying to an iPhone, Debugging, and Testing
- 6 UIApplication and UIApplicationDelegate
-
7 UIView and UIViewController
- The UIView Class
- The UIViewController Class
- View-Based Application Template
- IBOutlet and IBAction
- Try This: Using a View-Based Application Template
- Try This: Using a Window-Based Application Template
- UIViewController and Application Life Cycle Events
- Try This: Exploring Several Life Cycle Methods
- Summary
- 8 UITabBar and UITabBarController
- 9 UINavigationBar and UINavigationController
-
10 Tables Using UITableView and UITableViewController
- UITableView
- UITableViewDelegate and UITableViewDataSource
- Try This: Adopting the UITableViewDelegate and UITableViewDataSource
- Try This: Adding a Delegate and Data Source
- UITableViewController
- Try This: Using a UITableViewController
- Grouping and Indexing
- Try This: Grouping
- Try This: Indexing
- Images in Tables
- Try This: Adding an Image
- Selecting Rows
- Try This: Row Selection
- Changing Row Height
- Try This: Changing Row Height
- Accessorizing Table Cells
- Try This: Accessorizing a Table Cell
- Customizing a Table Cell
- Try This: Customizing a Cell Using Interface Builder
- Using Tables with Navigation Bars and Tabs
- Try This: Using a Table in a Navigation Controller in a Tab
- Editing Table Cells
- Try This: Editing Rows
- Summary
-
11 Activity Progress and Alerting Users
- Showing Activity—the UIActivityIndicatorView
- Try This: Using a UIActivitylndicatorView
- Showing Progress—the UIProgressView
- Try This: Using a UIProgress View
- Alerting Users
- UIAlertView and UIAlertViewDelegate
- Try This: Creating a Simple UIAlertView
- Try This: Using an Alert with Multiple Buttons
- UIActionSheet and UIActionSheetDelegate
- Try This: Using a UIActionSheet
- Application Badges
- Try This: Adding an Application Badge
- Summary
-
12 Controls—Part One: Using Buttons, Sliders, Switches, and Text Fields
- Buttons
- Try This: Using a Custom Button Background Image and Image
- Button Types
- UIToolBar
- Try This: Creating a UIToolbar
- UISwitch
- UISlider
- Try This: Using a Switch and a Slider
- UITextField
- Try This: Using UITextField (with a Number Pad)
- UITextView
- UISegmentedControl
- Try This: Using a UISegmentedControl
- The Web View
- Try This: Creating a Simple Web Browser
- Summary
-
13 Controls—Part Two: Using Pickers and Using the Camera
- Using Pickers: Date Pickers and Pickers
- Try This: Using a Date Picker
- Try This: Using a UIDatePicker in Timer Mode
- Try This: Using a Picker
- Try This: Using a UIPickerView with Two Components
- Try This: Loading UIImageViews into a UIPickerView
- Using the Camera: UIImagePickerController
- Try This: Using the UIImagePickerController
- Try This: Using Notifications
- Summary
-
14 Application Settings
- The Settings Application
- The Settings Bundle
- Try This: Creating a Settings Bundle
- Try This: Adding a PSTextFieldSpecifier
- Try This: Adding a PSMultiValueSpecifier
- Try This: Adding a PSToggleSwitchSpecifier
- Try This: Adding a PSSliderSpecifier
- Try This: Adding a PSChildPaneSpecifier
- Reading Settings Using NSUserDefaults
- Try This: Reading the Settings Bundle
- Summary
- 15 Property Lists and Archiving
-
16 Data Persistence Using SQLite
- Adding a SQLite Database
- Try This: Creating a Simple Database Using FireFox SQLite Manager
- Basic SQLite Database Manipulation
- Try This: Opening and Querying a Database
- Try This: Inserting, Updating, and Deleting Records
- Try This: Inserting Records
- Try This: Updating Records
- Try This: Deleting Records
- Summary
-
17 Core Data
- Core Data in Brief
- Creating a Model
- Try This: Adding Entities and Relationships to a Core Data Model
- Model, Context, and Store
- NSFetchedResultsController
- Try This: Fetching All AKCGroup Entities
- Adding Objects
- Saving Changes
- Deleting Entities
- Updating Entities
- Try This: Adding Navigation and AKCGroup Editing
- Navigation
- Try This: Adding Navigation and Editing for a List of Breeds
- Try This: Adding a Breed Detail View
- Distributing Core Data with Your App
- What Next?
- Summary
- 18 Multimedia
- 19 Universal Applications for the iPad
- Index
Product information
- Title: iOS SDK Programming A Beginners Guide
- Author(s):
- Release date: January 2011
- Publisher(s): McGraw-Hill
- ISBN: 9780071759090
You might also like
book
iOS Programming Cookbook
Over 50 exciting and powerful recipes to help you unearth the promise of iOS programming About …
book
iOS Game Programming with Xcode and Cocos2d
This book is written by a professional instructor and founder of CartoonSmart.com, a company specializing in …
book
Beginning iOS Programming: Building and Deploying iOS Applications
iOS 7 changed everything—get up to speed! iOS 7 is a major shift in the look …
book
iOS 7 Programming Fundamentals
If you’re getting started with iOS development, or want a firmer grasp of the basics, this …