-
Book Overview & Buying
-
Table Of Contents
-
Feedback & Rating
Core Data iOS Essentials
The addcustomerController method is the implementation method for the delegate of the AddCustomerController class and is invoked by the cancel and save methods (defined in the implementation file of the AddCustomerController class). The cancel method calls the previous method and passes the selectedsave parameter set to value NO and the save method calls the method with the selectedsave parameter set to value YES. The value of the selectedsave parameter is assigned to the variable: save.
In this method, we check the value of the variable save. If the value of the save variable is NO, we delete the object (the cust object of the Customer entity class that we inserted in the preceding method) from the managed object context and save the context in the persistent store.
Finally, we dismiss the modal view of the AddCustomerController class and the View of the RootViewController appears to display the updated table view.
The delegate method: controller:didChangeObject...
Change the font size
Change margin width
Change background colour