There is an updated version of this course available, created for Swift 5.1, iOS 13, Xcode 11. View Latest Version

Saving Data in iOS

Apr 4 2017 · Video Course (1 hr, 25 mins) · Beginner

From saving simple text files to implementing a complete object graph management solution, iOS provides a variety of different options on persisting your data. This series explores all the various different savings methods and shows how you can start implementing them in your app, updated using Swift and the latest APIs.

Version

  • Swift 3, iOS 10, Xcode 8

Introduction

4:32 Free

Find out what's covered in our Saving Data in iOS course!

1

FileManager

12:31

Learn to use FileManager to work with saved data in the user's document directory.

2

Learn how to use Foundation's Data structure to save and load your bytes of data.

3

NSCoding

14:37

Learn how to save your object graph to disc using the NSCoding protocol.

4

Building on what was introduced with NSCoding, learn to serialize your Swift data structures by translating them into dictionaries.

5

Learn how to work with your data using the property list format, a very common file type in Apple development.

6

JSON

10:56

Learn how to save and load using JSON, preparing you for translating back and forth between your Swift types and data from the web.

7

Learn about Foundation's UserDefaults, a method for saving a user's preferences and settings.

8

Conclusion

2:22

Review what you've learned in this course, and find out where to learn more ways to save data.

9

Version history

iOS 13, Swift 5.1, Xcode 11

Oct 1 2020

iOS 12, Swift 4, Xcode 10

Sep 19 2018

iOS 11, Swift 4, Xcode 9

Oct 10 2017

iOS 10, Swift 3, Xcode 8 (Selected)

Apr 4 2017

Nov 24 2015

Contributors

Comments