Consuming Web Services and Using Local Storage on iOS

This course demonstrates the fundamental techniques for downloading, reading, and writing data in iOS apps.
Course info
Rating
(110)
Level
Intermediate
Updated
Jul 8, 2013
Duration
2h 0m
Table of contents
Description
Course info
Rating
(110)
Level
Intermediate
Updated
Jul 8, 2013
Duration
2h 0m
Description

This course demonstrates the fundamental techniques used for downloading, reading and writing data in iOS apps. You’ll learn how to download data from an XML web service, parse it and display it in your app. You’ll also see how to perform the same task with a service that serves JSON data. Techniques for storing data locally on an iOS device are covered. These include archiving custom objects as well as reading and writing objects to and from property lists. You will also learn how to use the NSUserDefaults class to read and write simple data such as user preferences. All apps use data of some kind and this course will teach you the fundamental skills you need to get started working with data on the iOS platform. Follow along as we build an iPhone app from scratch and add new functionality in each module.

About the author
About the author

Brice has been a professional developer for over 20 years and loves to experiment with new tools and technologies. Web development and native iOS apps currently occupy most of his time.

More from the author
State of .NET: Executive Briefing
Beginner
25m
May 17, 2019
RxJS: The Big Picture
Beginner
1h 2m
Mar 5, 2019
More courses by Brice Wilson
Section Introduction Transcripts
Section Introduction Transcripts

Downloading Data from JSON Web Services
Hi, this is Brice Wilson with Pluralsight. Welcome to the second module of this course titled Consuming Web Services and Using Local Storage on iOS. In the first module we examined how to download imparse data from an XML Web service. In this module we will do the same thing with a JSON Web service. JSON is quickly becoming the standard data format for interoperability on the Web and something you will almost certainly encounter if you attempt to download data in your iOS apps. Let's get started.

Saving Data to Property Lists
Hi, this is Brice Wilson with Pluralsight. Welcome to the fourth module in this course titled, Consuming Web Services and Using Local Storage on iOS. In this module, we're going to continue looking at ways to save data to the file system in iOS. In the last module, we saw how to archive our custom objects. In this module, we're going to take a look at property lists and see how we can easily save simple hierarchal object graphs with very little code. In this module, the first thing we'll try to do is answer the question, what is a property list? We'll then see how to create property lists in Xcode and in our application code. Next, we'll take a look at the differences in binary and XML property lists and see the steps involved in reading and writing both types. Finally, we'll review the NSPropertyListSerialization class and the role it plays when working with property lists.

Using NSUserDefaults
Hi. This is Brice Wilson with Pluralsight. Welcome to the fifth and final module of this course titled Consuming Web Services and Using Local Storage on iOS. In this short module we're going to talk about the NSUserDefaults class and how we can use it store small bits of data, like user preferences, in in our apps. In this module, I'll explain the purpose of the NSUserDefaults class and how it relates to several of the other data related technologies we've covered in this course. We'll see how to read and write data using the class, and how to define default values for user preferences if the user has not yet specified their preference. We'll also add a new feature to the app we've been building throughout the course, which will allow users to specify their preference for how the course listing should be sorted.