Chapter 7
The Product Detail Screen
In this chapter you learn how to implement the product detail screen, which includes information such as the product name, price, detail, and full-size image; the screen also includes a share menu as well as the option to buy a product or add it to a favorites list.
Build the Product Detail Screen
Figure 7-1 shows the finished UI of the product detail screen. The UI uses the UINavigationBar title to show the product’s name; the right bar button item to add the share options; and a “heart” button so users can add the product to their Favorites list. To show the product’s name and price, you use two UILabels. The product detail might be pretty lengthy, so you use a UITextView to hold its content. Finally, ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access