Limit search to available items
Book Cover
E-book
Author Bakir, Ahmed, author.

Title Program the internet of things with Swift for iOS / Ahmed Bakir, Gheorghe Chesler, Manny de la Torriente
Published [Berkeley, California] : Apress, 2016
New York, NY : Distributed to the Book trade worldwide by Springer
©2016

Copies

Description 1 online resource (xxv, 494 pages) : color illustrations
Contents At a Glance; Contents; About the Authors; About the Technical Reviewer; Introduction; Chapter 1: Building Your First Internet of Things App; Ahmed Bakir; Setting up the Project; Building the User Interface; Creating the Table View Controller; Connecting to a Table View Controller; Creating an Add Button; Selecting a Template; Creating the Map View Controller; Requesting Location Permission; Accessing the User's Location; Displaying the User's Location; Populating the Table View; Populating the Map; Summary; Chapter 2: Getting Started with Swift; Ahmed Bakir
Why Use Swift? Basic Swift Syntax; Calling Methods (Hello World); Defining Variables; Compound Data Types; Conditional Logic; Enumerated Types; Loops; Object-Oriented Programming in Swift; Building a Class; Protocols; Method Signatures; Accessing Properties and Methods; Instantiating Objects; Strings; Formatting Strings; Collections; Casting; Swift-Specific Language Features; Optionals; Try-Catch Blocks; Mixing Objective-C and Swift in Projects; Calling Swift from Objective-C; Summary; Chapter 3: Accessing Health Information Using HealthKit; Introduction
Getting Started Setting Up the User Interface; Setting Up the Project for HealthKit; Prompting the User for HealthKit Permission; Retrieving Data from HealthKit; Displaying Results in a Table View; Fetching Background Updates ; Summary; Chapter 4: Using Core Motion to Save Motion Data; Introduction; Using Core Motion to Access Motion Hardware; Requesting User Permission for Motion Activity; Querying for Step Count; Detecting Live Updates to Step Count; Detecting Activity Type ; Saving Data to HealthKit; Summary
Chapter 5: Integrating Third-Party Fitness Trackers and Data Using the Fitbit API Gheorghe Chesler; Introduction to the Fitbit API; The RESTful API; The Return Format; Fitbit RESTful API Implementation Details; Setting Up a Local Playground with Apache; Creating the Test Documents; The OAuth1.0a Authentication Model; The Fitbit OAuth Implementation ; Fitbit API Call Rate Limits; The Client+Viewer Rate Limit ; The Client Rate Limit ; Response Headers ; Hitting the Rate Limit ; Making async Calls ; Using callbacks as Parameters; Setting up a Fitbit-compatible iOS Project
The View Controller The Logger Library; Setting up a Basic Set of Crypto Functions; Crypto.swift ; The API Client Library ; The Code for APIClient.swift; The OAuth Library ; Signing the Request; Creating the OAuth H; The code for OAuth1a.swift ; Testing What We Have so Far; Making requests to the Fitbit API; Retrieving the User Profile ; Retrieving and Setting Data in the API; Getting the Blood Pressure; Setting the Blood Pressure; Logging the Body Weight ; OAuth versions: Working in both worlds; Summary; Chapter 6: Building Your First watchOS App; Introduction
Summary Program the Internet of Things with Swift and iOS is a detailed tutorial that will teach you how to build apps using Apple?s native APIs for the Internet of Things, including the Apple Watch, HomeKit, and Apple Pay. This is the second book by Ahmed Bakir (author of Beginning iOS Media App Development) and his team at devAtelier LLC, who have been involved in developing over 20 mobile projects. Written like a code review, this book presents a detailed "how" and "why" for each topic, explaining Apple-specific design patterns as they come up and pulling lessons from other popular apps. To help you getting up and running quickly, each chapter is framed within a working project, allowing you to use the sample code directly in your apps. The Internet of Things is not limited to Apple devices alone, so this book also explains how to interface with popular third-party hardware devices, such as the Fitbit and Raspberry Pi, and generic interfaces, like Restful API?s and HTTPS. The Internet of Things is waiting? be a part of it!
Notes Includes index
English
Online resource; title from PDF title page (SpringerLink, viewed January 11, 2016)
SUBJECT iOS (Electronic resource) http://id.loc.gov/authorities/names/n2010039603
iOS (Electronic resource) fast
Subject Application software -- Development.
Swift (Computer program language)
Internet of things.
Computer science.
Network hardware.
COMPUTERS -- Software Development & Engineering -- Tools.
Application software -- Development
Internet of things
Swift (Computer program language)
Form Electronic book
Author Chesler, Gheorghe, author
Torriente, Manny de la, author
ISBN 9781484211946
1484211944