1. Adding a
AddNameControllerclass for adding the name of the customer.
2. Defining protocol, outlets, and action methods in header file:
3. Defining View of the
AddNameControllerclass and connecting controls.
4. Invoking delegate methods from an implementation 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...