Core Data iOS Essentials.
A fast-paced, example-driven guide guide to data-drive iPhone, iPad, and iPod Touch applications.
Clasificación: | Libro Electrónico |
---|---|
Autor principal: | |
Formato: | Electrónico eBook |
Idioma: | Inglés |
Publicado: |
Birmingham :
Packt Pub.,
2011.
|
Temas: | |
Acceso en línea: | Texto completo |
Tabla de Contenidos:
- Core Data iOS Essentials; Core Data iOS Essentials; Credits; About the Author; Acknowledgement; About the Reviewers; www.PacktPub.com; Support files, eBooks, discount offers, and more; Why Subscribe?; Free Access for Packt account holders; Preface; What this book covers; What you need for this book; Who this book is for; Conventions; Reader feedback; Customer support; Downloading the example code; Errata; Piracy; Questions; 1. Overview; Prerequisite; A brief history; Enterprise Object Framework (EOF); Core Data; Why use Xcode?; Source code; Shall we begin?; 2. Understanding Core Data.
- Core DataCore Data features; Data Model; Entities; Properties; Attributes; Relationships; Inverse relationship; Model View Controller (MVC); Core Data API; Persistent Store; Persistent Store Coordinator; FetchRequest; FetchedResultsController; Overview of the application: Sales Record System for a Departmental Store; Entity Relationship Diagram; An application output sample; Entering Master Product Information; Modifying the Master Product; Deleting the Master Product; Entering customer information and order details; Deleting customer information; Searching for specific customers.
- Searching and modifying customer informationEntering Customer Sales Information; Automatic Master Product Update; Summary; 3. Understanding Objective-C Protocol and Table View; Protocol; Implementing the Strategy pattern; Defining the protocol; Creating a delegate property; Declaring protocol methods; Creating a sample application using a protocol and a delegate; Adding the ViewController class for entering numerical values; Defining the protocol, outlets, and action methods in the SecondViewController.h header file; Defining the SecondViewController class and connecting controls.
- Invoking delegate methods from the SecondViewController.m implementation fileDeclaring the delegate, outlet, and action methods in the demodelegateViewController.h header file; Defining the demodelegateViewController and connecting controls; Implementing the protocol methods in the demodelegateViewController.m file; Running the project; Introduction to Table View; Creating an application to display Table View cells; Declaring an array in the header file; Implementing UITableViewDataSource protocol methods; Adding names to the Table View; Adding the AddNameController View controller.
- Defining protocols, outlets, and action methods in the AddNameController.h header fileDefining the AddNameController class View and connecting controls; Invoking Delegate methods in the AddNameController.m implementation file; Invoking the AddNameController View and implementing the protocol methods; Placing and connecting the Bar Button Item control in the RootViewController; Summary; 4. Designing a Data Model and Building Data Objects for Customers; Creating a new project; Designing the data model; Data Model Editor; Adding an entity; Adding an attribute property; Types of attributes.