Open chengyin opened 8 years ago
:+1: Excellent work Chengyin! The primary goals of this homework are to learn how to use AutoLayout to build adaptive UI's that work across many different screen sizes and orientations and to get practice using the delegate pattern. If you haven't already, I recommend going back and running your Yelp app again while rotating the device / simulator to ensure your AutoLayout constraints function as expected.
A couple notes after checking out your code / gif:
Images.xcassets
to host all of your image resources.business
property in your BusinessTableViewCell
and then using a "property observer" to configure the cell instead of having a separate showBusiness
method.Here's our general Yelp assignment feedback guide:
Images.xcassets
? Using the asset catalog is the best practice for storing images. This also lets you keep multiple versions of each image for the necessary screen resolutions (1x, 2x, and 3x).YelpBusiness
property? Your custom Business cell should have a property of type YelpBusiness
. In the custom setter, you should configure the various labels and images. This decouples your custom cells from the table view controllers.
My app is complete, please review. /cc @codepathreview