Core Data iOS Essentials

Knowing Core Data gives you the option of creating data-driven iOS apps, and this book is the perfect way to learn as it takes you through the process of creating an actual app with hands-on instructions.

Core Data iOS Essentials

B.M.Harwani

Knowing Core Data gives you the option of creating data-driven iOS apps, and this book is the perfect way to learn as it takes you through the process of creating an actual app with hands-on instructions.
Mapt Subscription
FREE
$29.99/m after trial
eBook
$18.90
RRP $26.99
Save 29%
Print + eBook
$44.99
RRP $44.99
What do I get with a Mapt Pro subscription?
  • Unlimited access to all Packt’s 5,000+ eBooks and Videos
  • Early Access content, Progress Tracking, and Assessments
  • 1 Free eBook or Video to download and keep every month after trial
What do I get with an eBook?
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with Print & eBook?
  • Get a paperback copy of the book delivered to you
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with a Video?
  • Download this Video course in MP4 format
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
$0.00
$18.90
$44.99
$29.99p/m after trial
RRP $26.99
RRP $44.99
Subscription
eBook
Print + eBook
Start 30 Day Trial
Subscribe and access every Packt eBook & Video.
 
  • 5,000+ eBooks & Videos
  • 50+ New titles a month
  • 1 Free eBook/Video to keep every month
Start Free Trial
 
Preview in Mapt

Book Details

ISBN 139781849690942
Paperback340 pages

Book Description

Core Data is the essential ingredient in data driven iOS apps. It's used for storing, retrieving, and manipulating application data in databases, XML, and binary formats. It's an essential component for iPhone, iPod Touch, and iPad apps.

Core Data Essentials provides a clear, readable guide to the most useful aspects of Core Data. Built around a realistic example app, the book showcases the most important aspects of Core Data development in the context of a complete, functioning app written in Objective C.

The book starts with a tour of how the app works. Then you'll see how to easily display data using the Table View. You'll learn how to develop an appropriate data model that fits the needs of your app, then implement that model as updatable data objects. You'll see how to update data and build relationships between objects and learn how Core Data can work with search, and how to provide your users with friendly data editing features.

Table of Contents

Chapter 1: Overview
Prerequisite
A brief history
Source code
Shall we begin?
Chapter 2: Understanding Core Data
Core Data
Data Model
Model View Controller (MVC)
Core Data API
Overview of the application: Sales Record System for a Departmental Store
Entity Relationship Diagram
An application output sample
Automatic Master Product Update
Summary
Chapter 3: Understanding Objective-C Protocol and Table View
Protocol
Creating a sample application using a protocol and a delegate
Introduction to Table View
Creating an application to display Table View cells
Adding names to the Table View
Summary
Chapter 4: Designing a Data Model and Building Data Objects for Customers
Creating a new project
Designing the data model
Building data objects for the Customer entity
Understanding code of autogenerated files
Summary
Chapter 5: Creating, Listing, and Deleting Names of Customers
Splitting the task into two modules
Creating a module to save and delete a customer's name
Key value coding (KVC)
Implementing the methods of the NSFetchedResultsControllerDelegate protocol
Running the project
Summary
Chapter 6: Creating, Listing, Displaying, and Deleting Records of Customers
Understanding multiple managed object context
Applying the concept of multiple managed object context in our application
Enhancing our application to save, list, display, and delete customer information
viewDidLoad method
cell AtIndexPath method
didSelectRowAtIndexPath method
addCustomer method
addcustomerController method
Summary
Chapter 7: Updating and Searching Records of Customers
Applying the update feature
Using KVO to know what has been updated
Running the project
Applying search facility
Understanding NSPredicate
Removing the keyboard after selecting a customer's name
Using Predicate Builder for creating a search criterion
Summary
Chapter 8: Entering, Saving, Listing, and Deleting the Records of the Products Sold to the Customers
Adding the product entity to the Data Model
Relationship
Establishing a relationship between the Customer and the Product entities
Building the data object for the Customer and the Product entities
Entering the information of the products sold to the customers
Creating a module to develop an interface to enter the product information
Developing a module to create a menu for manipulating the product information
Creating a module to connect the Product's menu to the rest of the project
Running the project
Summary
Chapter 9: Entering, Displaying, and Deleting the Stock
Adding the MasterProduct entity to the Data Model
Storing the image of the MasterProduct
Building the data object for the MasterProduct entity
Maintaining the MasterProduct information
Summary
Chapter 10: Editing the Stock Information
Module to connect the MasterProduct's menu to the rest of the project
Running the application
Module to modify the information of the master product
Summary
Chapter 11: Displaying the Products for Sale and Updating the Stock
Displaying the products available for sale
Updating the stock
Automatically updating the quantity of the product in the MasterProduct entity
Versioning
Migrations
Summary

What You Will Learn

  • Get a solid grasp of what Core Data is and how it works
  • Build full featured data driven applications for iOS devices
  • Design appropriate data models to fit your app's needs
  • Make your app's data easily searchable
  • Display your data in an attractive, flexible way

Authors

Table of Contents

Chapter 1: Overview
Prerequisite
A brief history
Source code
Shall we begin?
Chapter 2: Understanding Core Data
Core Data
Data Model
Model View Controller (MVC)
Core Data API
Overview of the application: Sales Record System for a Departmental Store
Entity Relationship Diagram
An application output sample
Automatic Master Product Update
Summary
Chapter 3: Understanding Objective-C Protocol and Table View
Protocol
Creating a sample application using a protocol and a delegate
Introduction to Table View
Creating an application to display Table View cells
Adding names to the Table View
Summary
Chapter 4: Designing a Data Model and Building Data Objects for Customers
Creating a new project
Designing the data model
Building data objects for the Customer entity
Understanding code of autogenerated files
Summary
Chapter 5: Creating, Listing, and Deleting Names of Customers
Splitting the task into two modules
Creating a module to save and delete a customer's name
Key value coding (KVC)
Implementing the methods of the NSFetchedResultsControllerDelegate protocol
Running the project
Summary
Chapter 6: Creating, Listing, Displaying, and Deleting Records of Customers
Understanding multiple managed object context
Applying the concept of multiple managed object context in our application
Enhancing our application to save, list, display, and delete customer information
viewDidLoad method
cell AtIndexPath method
didSelectRowAtIndexPath method
addCustomer method
addcustomerController method
Summary
Chapter 7: Updating and Searching Records of Customers
Applying the update feature
Using KVO to know what has been updated
Running the project
Applying search facility
Understanding NSPredicate
Removing the keyboard after selecting a customer's name
Using Predicate Builder for creating a search criterion
Summary
Chapter 8: Entering, Saving, Listing, and Deleting the Records of the Products Sold to the Customers
Adding the product entity to the Data Model
Relationship
Establishing a relationship between the Customer and the Product entities
Building the data object for the Customer and the Product entities
Entering the information of the products sold to the customers
Creating a module to develop an interface to enter the product information
Developing a module to create a menu for manipulating the product information
Creating a module to connect the Product's menu to the rest of the project
Running the project
Summary
Chapter 9: Entering, Displaying, and Deleting the Stock
Adding the MasterProduct entity to the Data Model
Storing the image of the MasterProduct
Building the data object for the MasterProduct entity
Maintaining the MasterProduct information
Summary
Chapter 10: Editing the Stock Information
Module to connect the MasterProduct's menu to the rest of the project
Running the application
Module to modify the information of the master product
Summary
Chapter 11: Displaying the Products for Sale and Updating the Stock
Displaying the products available for sale
Updating the stock
Automatically updating the quantity of the product in the MasterProduct entity
Versioning
Migrations
Summary

Book Details

ISBN 139781849690942
Paperback340 pages
Read More

Read More Reviews

Recommended for You

Mastering Web Application Development with AngularJS Book Cover
Mastering Web Application Development with AngularJS
$ 26.99
$ 5.40
Responsive Web Design with HTML5 and CSS3 Book Cover
Responsive Web Design with HTML5 and CSS3
$ 23.99
$ 4.80
Object-Oriented JavaScript - Second Edition Book Cover
Object-Oriented JavaScript - Second Edition
$ 29.99
$ 21.00
Mastering Swift 2 Book Cover
Mastering Swift 2
$ 39.99
$ 28.00
Git: Version Control for Everyone Book Cover
Git: Version Control for Everyone
$ 23.99
$ 16.80
Swift Essentials Book Cover
Swift Essentials
$ 29.99
$ 21.00