Weekly bite-sized screencasts on iOS development.

Auto Layout in Code

Episode #133 | 18 minutes | published on 08/21/2014
Subscribers Only
In this episode we take a look at how to set up auto layout constraints in code, rather than with Interface Builder / Storyboards. Whether you prefer to work in code or storyboards to lay you user interfaces, often times setting things up in code is required. You'll see how to use NSLayoutConstraint to fully specify a layout, and hopefully understand a bit more about how auto layout works.

Realm

Episode #132 | 12 minutes | published on 08/14/2014
Subscribers Only
Realm is a new project that aims to replace Core Data and even SQLite for mobile app persistent storage needs. While an ambitious goal, I like seeing alternatives in this area, as Core Data is not always my favorite framework. In this episode we'll add Realm to a project and store a few rudimentary objects. We'll also see a quick way to query the data in the "realm".

Swift JSON Redux Part 2

Episode #131 | 10 minutes | published on 08/07/2014
Subscribers Only
In this episode we wrap up our JSON parsing exploration in Swift by extending the decoding to work with arrays. Doing so cleans up the extraction code significantly.

Swift JSON Redux - Part 1

Episode #130 | 30 minutes | published on 07/31/2014
Subscribers Only
In this episode we attempt to write a more idiomatic JSON Parsing framework leveraging Swift. To accomplish this we'll lean heavily on Swift's powerful enum features and apply a couple of custom operators to clean up syntax and reduce redundant code.

Swift JSON

Episode #129 | 13 minutes | published on 07/24/2014
Subscribers Only
In Swift, parsing JSON (which provides no contracts or type guarantees) can be difficult and tedious in Swift. Many of the problems you are forced to deal with were easier to ignore in Objective-C, but that doesn't mean they weren't present. In this episode we'll take a look at a very manual approach to mapping from a JSON response to a Swift type.

Swift Networking

Episode #128 | 15 minutes | published on 07/17/2014
Subscribers Only
In this episode we take a look at the NSURLSession API from a Swift perspective. We create a class to fetch JSON from an API, and along the way see lazy properties and type aliases.

Swift Operators

Episode #127 | 10 minutes | published on 07/10/2014
Subscribers Only
One of Swift's powerful features is the ability to define custom operators. In this episode we take a look at two examples of custom operators, one for easy regular expression matching, and another for computing the dot product between two vectors.

Swift Classes

Episode #126 | 11 minutes | published on 07/03/2014
Subscribers Only
Continuing on with our Swift exploration, we focus this time on Swift classes. We talk about initializers, inheritance, protocols, type inspection, and more.

Swift Basics

Episode #125 | 12 minutes | published on 06/26/2014
Subscribers Only
In this episode we take a first look at Apple's brand new programming language Swift.

Method Swizzling

Episode #124 | 16 minutes | published on 06/19/2014
Subscribers Only
In this episode we delve into the wonderful Objective-C runtime in order to replace method implementations with our own. Using this technique we can add or change behavior to existing classes, which can be extremely useful for Aspect Oriented Programming (logging/benchmarking), or analytics.

STHTTPRequest

Episode #123 | 13 minutes | published on 06/13/2014
Subscribers Only
In this episode I take a look at a lightweight network library called STHTTPRequst. Specifically I like two features it provides: easy curl logging of outgoing requests, and a test response queue for performing unit tests against canned responses. Whether or not you want to use this library, there are some good things to learn here.

Animating with POP

Episode #122 | 19 minutes | published on 06/05/2014
Subscribers Only
In this episode I cover Facebook's new, shiny animation framework called Pop. With it we explore spring & decay animations that can make your apps feel more alive.

Mantle with Core Data Part 2

Episode #121 | 16 minutes | published on 05/29/2014
Subscribers Only
In this episode we continue with our mantle example, this time binding the code to the UI. This involves mapping back to our mantle model for display on the cell, as well as responding to changes using the NSFetchedResultsControllerDelegate protocol.

Mantle with Core Data

Episode #120 | 17 minutes | published on 05/22/2014
Subscribers Only
In this episode we cover a different feature of Mantle, which allows us to serialize our models into Core Data entities. This episode continues where we left off in Episode 116.

URL Scheme Callbacks

Episode #119 | 20 minutes | published on 05/15/2014
Subscribers Only
In this episode I cover the x-callback-url draft standard, which is an attempt to formalize a way that applications can exchange data back & forth. Using this technique you can have an application expose functionality available to another application. We'll cover parsing URLs to extract out query parameters and how to respond to callbacks in your application.

Integrating with 1Password

Episode #118 | 9 minutes | published on 05/08/2014
Subscribers Only
In this episode we talk about adding support for 1Password when creating your login forms. This is an easy technique that can add a nice touch to your applications if you need to support user login.

URL Schemes

Episode #117 | 10 minutes | published on 05/01/2014
Subscribers Only
In this episode I cover how you can expose your app's functionality through URL schemes. Inter-app communication is something that iOS is somewhat lacking in, but URL schemes can enable some handy integration scenarios.

Mantle

Episode #116 | 16 minutes | published on 04/24/2014
Subscribers Only
In this episode we go over a handy little model framework called Mantle. With Mantle we can easily get support for NSCoding, NSCopying, and JSON serialization for our model objects.

Submitting to the App Store

Episode #115 | 12 minutes | published on 04/17/2014
Subscribers Only
In this episode I walk through the process of submitting GiggleTouch to the App Store. Starting with setting the app up to take posed screenshots, requesting certificates, provisioning profiles, and more.

Playing Sounds with Sprite Kit

Episode #114 | 16 minutes | published on 04/10/2014
Subscribers Only
In this episode we add looping background music to the game using AVFoundation and AVAudioPlayer. We then add sound effects using Sprite Kit's SKAction. In order to reduce lag, we preload the audio files so that they play instantaneously. We also implement rate limiting to avoid sound effect overload using SAMRateLimit.