Creating Reviews

In this section, we will add the ability for users to add restaurant reviews. Let's look at the design and see all the functionality:

Creating Reviews

Here, we have two views, one for when there are no reviews, and one in order to display a review. The simplest way to do this is to add two UIViews; then, we can hide or show based on the number of reviews we have. To make designing easier, we will put each UIView in its own row. Then, we will combine them into one when we are finished setting up each one.

  1. In the Outline view, select the 5th Table View Cell; and, in the Size Inspector of the Utilities panel, update Row Height to 156 and press Enter ...

Get iOS 10 Programming for Beginners 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.