Table of Contents:
  • Frame RectanglesBounds Rectangles; Building a Custom View; Creating the Project; Filling with a Solid Color; Working with Paths; Creating Custom Paths; Multiple Subpaths; Shadows; Gradients; Transforms; Chapter 8. Audio and Video; AV Foundation; Playing Video with AVPlayer; AVPlayerLayer; Putting It Together; Playing Sound with AVAudioPlayer; Working with the Photo Library; Capturing Photos and Video from the Camera; Building a Photo Application; The Photo Library; Chapter 9. Model Objects and Data Storage; Key-Value Coding; Key-Value Observing; Registering for Change Notifications
  • Copyright; Table of Contents; Preface; Audience; Organization of This Book; Conventions Used in This Book; Using Code Examples; Safari® Books Online; How to Contact Us; Acknowledgments; Chapter 1. Cocoa Development Tools; The Mac and iOS Developer Programs; Registering for a Developer Program; Downloading Xcode from Apple Developer; Getting Around in Xcode; The Xcode Interface; Developing a Simple Objective-C Application; Designing the Interface; Connecting the Code; Using the iOS Simulator; Chapter 2. Object-Oriented Programming with Objective-C; Object-Oriented Programming; Objects
  • Serialization and DeserializationDesign Patterns in Cocoa; Model-View-Controller; Delegation; Key-Value Observing; Chapter 4. Applications on OS X and iOS; What Is an Application?; Applications, Frameworks, Utilities, and More; What Are Apps Composed Of?; Using NSBundle to Find Resources in Applications; The Application Lifecycle; OS X Applications; iOS Applications; The Application Sandbox; Application Restrictions; Chapter 5. Graphical User Interfaces; Interfaces in OS X and iOS; MVC and Application Design; Nib Files; Structure of a Nib File; Outlets and Actions; How Nib Files Are Loaded
  • Constructing an InterfaceGuidelines and Constraints; Building an App with Nibs and Constraints; Core Animation; Layers; Animations; Chapter 6. Blocks and Operation Quotes; Blocks; Block Syntax; Block Life Cycles; Methods with Block Parameters; Blocks and Memory Management; Modifying Local Variables from Inside Blocks with __block; Concurrency with Operation Queues; Operation Queues and NSOperation; Performing Work on Operation Queues; Putting It All Together; Chapter 7. Drawing Graphics in Views; How Drawing Works; The Pixel Grid; Retina Displays; Pixels and Screen Points; Drawing in Views
  • InheritanceInterfaces and Implementations; Methods; Messages; Properties; Protocols; Class Extensions; Memory Management; Reference Counting; Automatic Reference Counting; Object Graphs in Objective-C; The NSObject Life Cycle; Allocation and Initialization; Retain and Release; Finalization and Deallocation; Chapter 3. Foundation; Mutable and Immutable Objects; Strings; Creating Strings; Working with Strings; Comparing Strings; Searching Strings; Arrays; Fast Enumeration; Mutable Arrays; Dictionaries; NSValue and NSNumber; Data; Loading Data from Files and URLs