In this module, we will learn how to save and edit the name of the customer.
The following are the steps involved in developing this module:
1. Adding a
ViewController
class:AddNameController
class for adding the name of the customer.2. Defining protocol, outlets, and action methods in header file:
AddNameController.h
.3. Defining View of the
AddNameController
class and connecting controls.4. Invoking delegate methods from an implementation file:
AddNameController.m
file.5. Declaring delegate and implementing methods for storing name of the customers.
To enter the name of the customer, we need to add a View Controller
class that will display a View that has a navigation bar with two navigation bar items: Save and Cancel. The View will also prompt the user to enter the customer's name to be stored in the customersdata.sqlite
file (persistent store).
The View Controllers...