About this Course

Persisting data is a core skill for any iOS developer. This course will teach you three techniques for storing data to your device’s hard drive: NSUserPreferences for small amounts of data, the Sandbox for files and Core Data when you have to play in the Big Leagues!

Course Cost
Free
Timeline
Approx. 2 months
Skill Level
Advanced
Included in Course
  • Icon course 01 3edf6b45629a2e8f1b490e1fb1516899e98b3b30db721466e83b1a1c16e237b1 Rich Learning Content

  • Icon course 04 2edd94a12ef9e5f0ebe04f6c9f6ae2c89e5efba5fd0b703c60f65837f8b54430 Interactive Quizzes

  • Icon course 02 2d90171a3a467a7d4613c7c615f15093d7402c66f2cf9a5ab4bcf11a4958aa33 Taught by Industry Pros

  • Icon course 05 237542f88ede3178ac4845d4bebf431ddd36d9c3c35aedfbd92e148c1c7361c6 Self-Paced Learning

  • Icon course 03 142f0532acf4fa030d680f5cb3babed8007e9ac853d0a3bf731fa30a7869db3a Student Support Community

Join the Path to Greatness

This free course is your first step towards a new career with the Become an iOS Developer Nanodegree Program.

Free Course

iOS Persistence and Core Data

Enhance your skill set and boost your hirability through innovative, independent learning.

Icon steps 54aa753742d05d598baf005f2bb1b5bb6339a7d544b84089a1eee6acd5a8543d

Course Leads

  • Fernando Rodriguez
    Fernando Rodriguez

    Instructor

  • Eden Shapiro
    Eden Shapiro

    Instructor

What You Will Learn

Lesson 1

Simple Persistence

  • Learn about simple persistence and how to save small pieces of data.
  • How to set user preferences, using NSUserDefaults.
  • Practice setting simple preferences to an existing app.
Lesson 1

Simple Persistence

  • Learn about simple persistence and how to save small pieces of data.
  • How to set user preferences, using NSUserDefaults.
  • Practice setting simple preferences to an existing app.
Lesson 2

The iOS File System

  • Learn about the iOS File System, the “sandbox”.
  • See how to access these files using NSFileManager.
  • Use the file manager to save and read a file.
Lesson 2

The iOS File System

  • Learn about the iOS File System, the “sandbox”.
  • See how to access these files using NSFileManager.
  • Use the file manager to save and read a file.
Lesson 3

Core Data (Part 1)

  • Get introduced to the Core Data framework, Apple’s favorite framework for the model class.
  • Learn about the Core Data stack and how to create a model and managed model objects.
  • Begin work on a note-taking app.
Lesson 3

Core Data (Part 1)

  • Get introduced to the Core Data framework, Apple’s favorite framework for the model class.
  • Learn about the Core Data stack and how to create a model and managed model objects.
  • Begin work on a note-taking app.
Lesson 4

Core Data (Part 2)

  • Learn how tableviews adjust their display.
  • How to save and persist changes.
  • The important role Core Data plays in memory management.
Lesson 4

Core Data (Part 2)

  • Learn how tableviews adjust their display.
  • How to save and persist changes.
  • The important role Core Data plays in memory management.
Lesson 5

Important Extras

  • Important aspects of maintaining a persistent app.
  • Learn how to save images using Core Data.
  • Create a new version of a data model.
Lesson 5

Important Extras

  • Important aspects of maintaining a persistent app.
  • Learn how to save images using Core Data.
  • Create a new version of a data model.
Lesson 6

Core Data & Concurrency

  • Send lengthy tasks to a background queue.
  • Learn how Core Data tasks can run in different queues in a safe and efficient way.
  • Use parent and child contexts to propagate saves without blocking the user interface.
Lesson 6

Core Data & Concurrency

  • Send lengthy tasks to a background queue.
  • Learn how Core Data tasks can run in different queues in a safe and efficient way.
  • Use parent and child contexts to propagate saves without blocking the user interface.

Prerequisites and Requirements

This course assumes extensive iOS experience. Specifically, you’ve built several apps, know how to use core iOS libraries, and are familiar with networking and MVC design principles. Introduction to iOS App Development with Swift, UIKit Fundamentals, and iOS Networking with Swift are good courses to take if you need to familiarize yourself with these concepts.

The course also assumes basic familiarity with git. Specifically, you will need to be able to clone git repositories and checkout branches specific to each lesson. How to Use Git & GitHub is a great option if you need to brush up on these skills.

You will need access to a Mac computer running OS X 10.9 or later. However, you do not need an iPad or iPhone to complete the activities. All exercises can be completed using the iOS simulator built into Xcode.

See the Technology Requirements for using Udacity.

Why Take This Course

Just like computers, your iPhone has two types of memory: main memory (RAM) and the hard drive. In all the apps you’ve written, you’ve interacted with RAM, but this memory is limited, and it’s important that the apps you design use it as efficiently as possible. To use the RAM efficiently it is important to be able to store data on the hard drive.

It is also important for your apps to maintain state when they are turned off. The apps you’ve built probably aren’t persistent, meaning that they don’t save their state to the device’s hard drive. As RAM is volatile, data is lost when the app stops running. In this course, you’ll learn how to persist the state of the device using NSUserDefaults and Core Data.

What do I get?
  • Instructor videos
  • Learn by doing exercises
  • Taught by industry professionals
Icon globe e82eae5d45465aba4fbe4bb746905ce55dc3324f310b79c60e4a20089057d347

Udacity 现已提供中文版本! A Udacity tem uma página em português para você! There's a local version of Udacity for you!

前往优达学城中文网站 Ir para a página brasileira Go to Indian Site or continue to Global Site