App Reviews Controller
AppStore JSON APIs
As a final feature of our App Detail page, we'll be including reviews that belong to each app for the third cell in our collection view. In this lesson, I'll go over how to set up our horizontal cells and the subviews that belong to each individual review cell. We'll take care of the actual data in the next lesson.

Comments (5)
Tube
4 years ago
It would be helpful if, maybe in the course preview, you gave us a flowchart showing the various classes and who calls whom. For example, diagram the classes for the app detail controller. Students could make their own of course, but it would be useful while taking the course, especially, when we revisit the course later.
tsangaris
4 years ago
Hi Tube, This is a great idea! I did it myself on a piece of paper just to understand the flow. Then I designed the Reviews myself just by following the flow of the Previews. It turns out that it's not that hard!! :) The main idea behind this (at least how I have it in my mind): 1. There is a main controller (AppDetailController) that (depending on the section) will draw out a cell (ex. ReviewRowCell). 2. That cell (ReviewRowCell) will consist of some other elements (UILabels, UIViews, UICollectionViewControllers (if we want another collection view inside the cell), etc.). I am using a vertical stack view to stack all elements rather than using autolayout. I find it easier, faster and cleaner. 3. The UICollectionViewController that we modified for the snapping effect, will be responsible for drawing the "child" cells (ReviewCell) as a horizontal collection view. 4. Lastly, you design the ReviewCell by placing elements. Hope I helped!
ZiadHamdieh
4 years ago
My review cells have their bottom corners rounded off but not the top corners. Is anyone else encountering this issue?
Brian Voong
4 years ago
ZiadHamdieh
4 years ago
I was able to fix it! The problem was that I added too much bottom padding in one of my functions.
tsangaris
4 years ago
@Brian: I am pretty sure that one of your new year's resolution was to write down the "required init?(:fatalError)" before xCode complains about it! Keep on rocking!!
ZpecterZ80
4 years ago
Hi Brian, this is an amazing course. I was wondering how to calculate the actual height for the reviews controller. I tried myself but the result is too high and the view doesn't fit correctly. Any tips?
Paul Xie
4 years ago
Hey Brian, this is a really helpful course. However I started to have a question since the beginning of this section. Is there a reason why you build the app detail page using a collection view with 3 different cell type? Why don't you use vertical stack view to layout these three sections?
Brian Voong
4 years ago
seventhaxis
3 years ago
I guess I'm in the same position as Paul; I understand collection/table views include a native scrolling ability, but don't they also include additional functionality that is unnecessary? I don't understand why a UIScrollView isn't the best choice.
Brian Voong
3 years ago
seventhaxis
3 years ago
Awesome, that's helpful to know. Thanks for the quick reply Brian!
HELP & SUPPORT