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:​Programming-Cookbook

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

Publisher resources

Download Example Code

Table of contents

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

Product information

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