Weekly bite-sized screencasts on iOS development.

There are 7 episodes with tag 'networking'   Clear search

File Downloads - Part 1

Episode #239 | 30 minutes | published on 10/06/2016
Subscribers Only
Downloading large files on iOS represents some unique challenges. Downloads should occur in the background, not confined to a particular view controller. They should be able to report progress on multiple screens, and should be robust enough to survive application suspension and failing network conditions, and respect the user's cellular data plan. In this episode we start a series on downloading large files that will cover all of the above concerns.

File Downloads - Part 2

Episode #240 | 32 minutes | published on 10/20/2016
Subscribers Only
In this episode we create a DownloadInfo model in CoreData in order to track the state of a download, separate from any view controller.

File Downloads - Part 3

Episode #241 | 17 minutes | published on 10/27/2016
Subscribers Only
In this episode we take the download state and progress notifications and update the user interface to reflect this state. We'll see how to translate the notification into the indexPath for that episode row, and how to fake a change related to the fetched results controller to trigger a reload of the content. We will leverage the RateLimit library to save periodic changes in progress to the model without overwhelming Core Data.

JSON API Client - Part 2

Episode #204 | 21 minutes | published on 01/14/2016
Subscribers Only
In this episode we start writing an application-specific API Client. We use Argo to decode our JSON response into an Episode model, including some nested object decoding, date formatting, and wrap it up by testing the implementation to make sure it works.

Networking in iOS 7

Episode #89 | 16 minutes | published on 10/03/2013
Subscribers Only
In this episode we take a look at the brand new NSURLSession family of classes. We'll consume the iTunes Affiliate Search API and show how to do a simple GET request.


Episode #203 | 32 minutes | published on 01/07/2016
Subscribers Only
In this episode I start creating a reusable api client that will make it a lot easier to consume a JSON api and convert the response into model objects. It uses Argo for the JSON parsing, and leverages Swift features to provide a rich callback for the API calls.

Modeling API Endpoints

Episode #194 | 6 minutes | published on 10/29/2015
Subscribers Only
In this episode we talk about modeling API Endpoints as first class types, rather than relying on strings and string interpolation scattered across your application. For this we'll leverage Swift enums with associated values.