Database Reference
In-Depth Information
Chapter 1: Your First Core
Data App
By Pietro Rea
Welcome to Core Data! In this chapter, you'll write your very first Core Data app.
You'll see how easy it is to get started with all the resources provided in Xcode,
from the starter code templates to the data model editor.
You're going to hit the ground running right from the first chapter in this topic; by
the end of the chapter you'll know how to:
model data you want to store in Core Data using Xcode's model editor;
add new records to Core Data;
fetch a set of records from Core Data; and
display the fetched results to the user in a table view.
You'll also get a sense of what Core Data is doing behind the scenes, and how you
can interact with the various moving pieces there. This will put you well on your
way to understanding the next two chapters, which continue the introduction to
Core Data with more advanced models and data validation, amongst other things.
We're getting ahead of ourselves though - it's time to build an app!
Getting started
Open Xcode and create a new iPhone project based on the Single View
Application template. Call the app HitList and make sure Use Core Data is
checked:
 
 
Search WWH ::




Custom Search