Книги и журналы » Компьютерная литература » Mac OS; Linux, FreeBSD и прочие *NIX
Programming iOS 5, 2nd EditionГод: 2012
Автор: Matt Neuburg
Жанр: Программирование
Издательство: O’Reilly Media, Inc.
Язык: Английский
Формат: PDF
Качество: Изначально компьютерное (eBook)
Интерактивное оглавление: Да
Количество страниц: 1014
Описание: Get a solid grounding in the fundamentals of Cocoa Touch, and avoid problems during iPhone and iPad app development. With this revised and expanded edition, you’ll dig into Cocoa and learn how to work effectively with Objective-C and Xcode. This book covers iOS 5 and Xcode 4.3 in a rigorous, orderly fashion—ideal whether you’re approaching iOS for the first time or need a reference to bolster existing skills.
Many discussions have been expanded or improved. All code examples have been revised, and many new code examples have been added.
•The new memory management system—ARC—is thoroughly explained and all code examples have been revised to use it.
•New Objective-C features, such as declaration of instance variables in the class’s implementation section, are described and incorporated into the revised example code.
•Discussion of how an app launches, and all code examples, are revised for project templates from Xcode 4.2 and later.
•Other new Xcode features, including the Simulator’s Debug menu, are covered, with screen shots based on Xcode 4.2 and later.
•The discussion of Instruments is expanded, with screen shots—by popular request!
•Storyboards are explained and discussed.
•The explanation of view controllers is completely rewritten to include iOS 5 features, such as custom parent view controllers and UIPageViewController.
•The Controls chapter now includes iOS 5 interface customizability and the appearance proxy.
•New features of interface classes are discussed, including tiling and animated images, new table view features, new alert view styles.
•Coverage of frameworks such as Core Motion and AV Foundation is greatly expanded. New iOS 5 classes and frameworks are also discussed, including Core Image and UIDocument (and iCloud support).
•Important iOS 5 changes that can break existing code are explicitly called out in the text and listed in the index.
[spoiler="Примеры страниц"]

[/spoiler]
[spoiler="Оглавление"]
LanguageChapter 1 : Just Enough CCompilation, Statements, and Comments
Variable Declaration, Initialization, and Data Types
Structs
Pointers
Arrays
Operators
Flow Control and Conditions
Functions
Pointer Parameters and the Address Operator
Files
The Standard Library
More Preprocessor Directives
Data Type Qualifiers
Chapter 2 : Object-Based ProgrammingObjects
Messages and Methods
Classes and Instances
Class Methods
Instance Variables
The Object-Based Philosophy
Chapter 3 : Objective-C Objects and MessagesAn Instance Reference Is a Pointer
Messages and Methods
Typecasting and the id Type
Messages as Data Type
C Functions
CFTypeRefs
Blocks
Chapter 4 : Objective-C ClassesClass and Superclass
Interface and Implementation
Header File and Implementation File
Class Methods
The Secret Life of Classes
Chapter 5 : Objective-C InstancesHow Instances Are Created
Polymorphism
The Keyword self
The Keyword super
Instance Variables and Accessors
Key–Value Coding
Properties
How to Write an Initializer
IDEChapter 6 : Anatomy of an Xcode ProjectNew Project
The Project Window
The Project File and Its Dependents
The Target
From Project to App
Chapter 7 : Nib ManagementA Tour of the Nib-Editing Interface
Nib Loading and File’s Owner
Making and Loading a Nib
Outlet Connections
Action Connections
Additional Initialization of Nib-Based Instances
Chapter 8 : DocumentationThe Documentation Window
Class Documentation Pages
Sample Code
Other Resources
Chapter 9 : Life Cycle of a ProjectChoosing a Device Architecture
Localization
Editing Your Code
Navigating Your Code
Debugging
Unit Testing
Static Analyzer
Clean
Running in the Simulator
Running on a Device
Device Management
Version Control
Instruments
Distribution
Ad Hoc Distribution
Final App Preparations
Submission to the App Store
CocoaChapter 10 : Cocoa ClassesSubclassing
Categories
Protocols
Optional Methods
Some Foundation Classes
The Secret Life of NSObject
Chapter 11 : Cocoa EventsReasons for Events
Subclassing
Notifications
Delegation
Data Sources
Actions
The Responder Chain
Application Lifetime Events
Swamped by Events
Chapter 12 : Accessors and Memory ManagementAccessors
Key–Value Coding
Memory Management
Properties
Chapter 13 : Data CommunicationModel–View–Controller
Instance Visibility
Notifications
Key–Value Observing
Views
Chapter 14 : ViewsThe Window
Subview and Superview
Frame
Bounds and Center
Layout
Transform
Visibility and Opacity
Chapter 15 : DrawingUIImage and UIImageView
Graphics Contexts
UIImage Drawing
CGImage Drawing
CIFilter and CIImage
Drawing a UIView
Graphics Context Settings
Paths and Drawing
Clipping
Gradients
Colors and Patterns
Graphics Context Transforms
Shadows
Points and Pixels
Content Mode
Chapter 16 : LayersView and Layer
Layers and Sublayers
Drawing in a Layer
Transforms
Shadows, Borders, and More
Layers and Key–Value Coding
Chapter 17 : AnimationDrawing, Animation, and Threading
UIImageView and UIImage Animation
View Animation
Implicit Layer Animation
Core Animation
Actions
Emitter Layers
Chapter 18 : TouchesTouch Events and Views
Receiving Touches
Restricting Touches
Interpreting Touches
Gesture Recognizers
Touch Delivery
InterfaceChapter 19 : View ControllersThe View Controller Hierarchy
View Controller and View Creation
Rotation
Presented View Controller
Tab Bar Controllers
Navigation Controllers
Page View Controller
Container View Controllers
Storyboards
View Controller Lifetime Events
View Controller Memory Management
Chapter 20 : Scroll ViewsCreating a Scroll View
Scrolling
Zooming
Scroll View Delegate
Scroll View Touches
Scroll View Performance
Chapter 21 : Table ViewsTable View Cells
Table View Data
Table View Selection
Table View Scrolling and Layout
Table View Searching
Table View Editing
Table View Menus
Chapter 22 : Popovers and Split ViewsConfiguring and Displaying a Popover
Managing a Popover
Dismissing a Popover
Popover Segues
Automatic Popovers
Split Views
Chapter 23 : TextUILabel
UITextField
UITextView
Core Text
Chapter 24 : Web ViewsLoading Content
Communicating with a Web View
Chapter 25 : Controls and Other ViewsUIActivityIndicatorView
UIProgressView
UIPickerView
UISearchBar
UIControl
Bars
Appearance Proxy
Chapter 26 : Modal DialogsAlert View
Action Sheet
Dialog Alternatives
Local Notifications
Some FrameworksChapter 27 : AudioSystem Sounds
Audio Session
Audio Player
Remote Control of Your Sound
Playing Sound in the Background
Further Topics in Sound
Chapter 28 : VideoMPMoviePlayerController
MPMoviePlayerViewController
UIVideoEditorController
An Introduction to AV Foundation Video
Chapter 29 : Music LibraryExploring the Music Library
The Music Player
The Music Picker
Chapter 30 : Photo Library and Image CaptureUIImagePickerController
Image Capture With AV Foundation
The Assets Library Framework
Chapter 31 : Address BookAddress Book Database
Address Book Interface
Chapter 32 : CalendarCalendar Database
Calendar Interface
Chapter 33 : MailMail Message
SMS Message
Chapter 34 : MapsDisplaying a Map
Annotations
Overlays
Chapter 35 : SensorsLocation
Heading
Acceleration and Attitude
Final TopicsChapter 36 : Persistent StorageThe Sandbox
Basic File Operations
Saving and Reading Files
User Defaults
File Sharing
Document Types
Handing Off a Document
The Document Architecture
XML
SQLite
Image File Formats
Chapter 37 : Basic NetworkingHTTP Requests
Bonjour
Push Notifications
Beyond Basic Networking
Chapter 38 : ThreadsThe Main Thread
Why Threading Is Hard
Three Ways of Threading
Threads and App Backgrounding
Chapter 39 : UndoThe Undo Manager
The Undo Interface
The Undo Architecture
Chapter 40 : EpilogueIndex
Colophon[/spoiler]