Book Image

Core Data iOS Essentials

Book Image

Core Data iOS Essentials

Overview of this book

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 (19 chapters)
Core Data iOS Essentials
Credits
About the Author
Acknowledgement
About the Reviewers
www.PacktPub.com
Preface
Appendix

Enhancing our application to save, list, display, and delete customer information


As we have seen and understood the concept of saving and deleting a single attribute, that is, customer's name, it will now be easier for us to learn and understand the concepts of saving, displaying, and deleting complete information of the customer that comprises of three attributes: name, emailid, and contactno.

Steps involved in this application are as follows:

  1. 1. Adding the ViewController class: AddCustomerController class.

  2. 2. Defining View for entering customer's information and connecting controls.

  3. 3. Coding in implementation file: AddCustomerController.m for accepting customer's information and invoking delegate methods.

  4. 4. Adding View Controller class: DisplayCustomerController for displaying customer's information.

  5. 5. Defining View and writing code in implementation file: DisplayCustomerController.m for displaying customer's information.

  6. 6. Implementing methods in the RootViewController class for storing...