Summary
In this chapter, we saw how a MasterProduct entity is added to our existing Data Model. We also saw creation of image attribute (for storing image of master product) of Transformable data type and created a Value Transformer to be used for converting an instance of UIImage into an NSData instance (while storing image to the persistent store) and for converting the NSData instance back to the UIImage instance while retrieving it from the persistent store for display. We also developed a Data Model (classes) associated with the MasterProduct entity. Also, we focused on entering and maintaining the information of the master product that our vendor deals with. The maintenance of the master product's information includes displaying, adding, deleting, and modifying the information and hence, the task is divided into four modules. We first developed a module that created a View to enter information of the master product that is available for sale. Then, to allow the user to add, save, and...