iOS 8 Swift Programming Cookbook

Video description

Learn how to overcome several programming issues when creating apps for iOS devices with iOS 8. This video course with Vandad Nahavandipoor, based on his cookbook with the same name, walks you through 30 practical recipes for working with the iOS 8 SDK, including HealthKit, HomeKit, Core Data, and CloudKit. If you’re familiar with Objective-C or other object-oriented programming languages, you’ll also learn details for switching to Apple’s new language, Swift.

By the end of this video tutorial, you’ll pick up techniques for storing and protecting data, networking, creating vibrant user interfaces, using concurrency, working with the Address Book, and many other options.

  • Get a practical and thorough introduction to Swift
  • Integrate CloudKit into your apps and store information with ease
  • Access user’s health-related information with HealthKit
  • Interact with accessories inside the user’s home with HomeKit
  • Add blur effects to your views and display alerts and action sheets
  • Build custom keyboards and create a service within your app
  • Retrieve and manipulate contacts and groups from the Address Book
  • Perform batch updates on Core Data
  • Complete a long-running task in the background

Source code can be found on GitHub: https://github.com/vandadnp/iOS-8-Swift-​Programming-Cookbook

Vandad Nahavandipoor works for a leading bank in London and has led an international team of more than 30 iOS developers.

Table of contents

  1. Introduction to Swift
    1. Introduction to Swift
    2. Variables, Constants and Type Annotations
    3. println(), Hex, Binary, Octal and Boolean Values
    4. Tuples, Optionals, and Implicitly Unwrapped Optionals
    5. The Nil Coalescing Operator and Range Operators
    6. Strings, Dictionaries, Arrays and Fast Iteration
    7. NSDictionary and NSArray
    8. If, While and Switch Statements
    9. Classes and Structures
    10. Functions, Parameters and Return Types
    11. Protocols
  2. User Interfaces
    1. Adding Blur Effects to Your Views
    2. Presenting Temporary Information on the Screen with Popovers
    3. Displaying Alerts and Action Sheets
    4. Loading Web Pages with WebKit
  3. Extensions
    1. Building Custom Keyboards
    2. Creating a Service Within Your App with Action Extensions
  4. HealthKit
    1. Retrieving and Modifying User’s Weight Information
    2. Accessing and Modifying User’s Height Information
    3. Reading and Modifying the User’s Total Calories Burned
  5. HomeKit
    1. Discovering and Managing HomeKit Enabled Accessories
    2. Interacting with HomeKit Accessories
  6. Concurrency
    1. Creating Simple Concurrency with Operations
    2. Completing a Long-Running Task in the Background
  7. Networking
    1. Downloading Data Using NSURLSession
    2. Downloading Asynchronously with NSURLConnection
  8. Address Book
    1. Retrieving a Person Entity with System UI
    2. Retrieving a Property of a Person Entity with System UI
    3. Retrieving All the People in the Address Book
    4. Retrieving and Setting a Person’s Address Book Image
  9. Files and Folders
    1. Writing to and Reading from Files
    2. Enumerating Files and Folders
  10. Core Data
    1. Performing Batch Updates on Core Data
    2. Reading Data From Core Data
    3. Deleting Data From Core Data
    4. Fetching Data in the Background
  11. Cloud Kit
    1. Storing Data with CloudKit
    2. Retrieving Data with CloudKit
    3. Querying the Cloud with CloudKit

Product information

  • Title: iOS 8 Swift Programming Cookbook
  • Author(s):
  • Release date: September 2014
  • Publisher(s): O'Reilly Media, Inc.
  • ISBN: 9781491911976