You are previewing iOS 8 SDK Development, 2nd Edition.
O'Reilly logo
iOS 8 SDK Development, 2nd Edition

Book Description

The iOS 8 SDK changes everything. New programming language, new ways to work with other apps, new tools to do cool stuff. In a world of iPhones and iPads, it's a great time to make a fresh start developing apps for the platform. This book guides you through the state of the art of iOS development, including the radically overhauled Xcode 6 toolchain, the iOS 8 SDK, and the new iPhone 6 and iPhone 6 Plus. Entirely rewritten to use Apple's new Swift programming language, this book will take you through the fundamentals of writing apps that are responsive, adaptive, practical, and exciting.

Table of Contents

  1. iOS 8 SDK Development
    1. For the Best Reading Experience...
    2. Table of Contents
    3. Early praise for iOS 8 SDK Development
    4. Acknowledgments
      1. From Chris Adamson
      2. From Janie Clayton
    5. Introduction
      1. About This Edition
      2. So Here’s the Plan
      3. Expectations and Technical Requirements
      4. Online Resources
      5. And So It Begins
    6. Chapter 1: Playing Around with Xcode
      1. Xcode Playgrounds
      2. Digging Into the Docs
      3. Wrap-Up
    7. Chapter 2: Building Adaptive User Interfaces
      1. Our First Project
      2. The Xcode Window
      3. Building Our User Interface
      4. Autolayout
      5. Connecting User Interface to Code
      6. Coding the App
      7. Wrap-Up
    8. Chapter 3: Programming in Swift for iOS
      1. Introducing Swift
      2. Managing an Object’s Properties
      3. The iOS Programming Stack
      4. Building Views with UIKit
      5. Strings
      6. Collections
      7. Optionals
      8. Internationalization
      9. Wrap-Up
    9. Chapter 4: Testing Apps
      1. Unit Tests
      2. Creating Tests in Xcode
      3. Test-Driven Development
      4. Creating Tests
      5. Testing Asynchronously
      6. Testing Frameworks
      7. Wrap-Up
    10. Chapter 5: Presenting Data in Table Views
      1. Tables on iOS
      2. Table Classes
      3. Creating and Connecting Tables
      4. Filling In the Table
      5. Customizing Table Appearance
      6. Cell Reuse
      7. Custom Table Cells
      8. Pull-to-Refresh
      9. Wrap-Up
    11. Chapter 6: Waiting for Things to Happen with Closures
      1. Setting Up Twitter API Calls
      2. Encapsulating Code in Closures
      3. Using the Twitter SLAccount
      4. Making a Twitter API Request
      5. Parsing the Twitter Response
      6. Wrap-Up
    12. Chapter 7: Doing Two Things at Once with Closures
      1. Grand Central Dispatch
      2. Concurrency and UIKit
      3. Do-It-Yourself Concurrency
      4. Wrap-Up
    13. Chapter 8: Growing Our Application
      1. Working with Multiple View Controllers
      2. Refactoring in Xcode
      3. Building Our Own Delegate
      4. Making the Twitter Code More General-Purpose
      5. Using Another TwitterAPIRequest
      6. Wrap-Up
    14. Chapter 9: Navigating Between View Controllers
      1. Navigation Controllers
      2. The Navigation Bar
      3. Navigating Between View Controllers
      4. Using the Storyboard Segue
      5. Sharing Data Between View Controllers
      6. Modal Navigation
      7. Exit Segues
      8. Wrap-Up
    15. Chapter 10: Taking Advantage of Large Screens
      1. Split Views on iPad
      2. Split Views on the iPhone
      3. Size Classes and the iPhone 6
      4. Wrap-Up
    16. Chapter 11: Recognizing Gestures
      1. Gesture Recognizers
      2. Pinching and Panning
      3. Affine Transformations
      4. Transforming the Image View
      5. Subview Clipping
      6. Wrap-Up
    17. Chapter 12: Working with Photos
      1. Photo Assets and PHAsset Class
      2. Fetching Our Assets
      3. Core Image
      4. Wrap-Up
    18. Chapter 13: Launching, Backgrounding, and Extensions
      1. The App Life Cycle
      2. Opening via URLs
      3. App Extensions
      4. Creating a Keyboard Extension
      5. Wrap-Up
    19. Chapter 14: Debugging Apps
      1. println : The First Line of Defense Against Bugs
      2. Breakpoints
      3. Setting Up Your Debugging Environment
      4. Wrap-Up
    20. Chapter 15: Publishing to the App Store
      1. Protecting Our Code with Source Control
      2. Running on the Device
      3. Icons and Launch Images
      4. Submitting Apps for Review
      5. After We Ship
      6. Onward!
      7. You May Be Interested In…