Chapter 6
The Products Screen
In this chapter, you will learn how to implement the Products screen. More specifically, you will learn how to display products and let users search your product list and filter products based on certain criteria. The first thing, however, is to create a product model.
The Product Model
Following the pattern introduced in earlier chapters, specify the model name in the EMABConstants helper class:
NSString *const kProduct= @"Product";
Next, create a new PFObject subclass, and name it “EMABProduct.” If you look at a typical makeup product, you might need a lot of properties to describe a product. For example, EMABProduct model has the following properties: name, unit price, price unit, detail, thumbnail image, ...
Get iOS eCommerce App Development with Parse now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.