Open yatchoi opened 8 years ago
:+1: Excellent work Yat! It's great to hear you enjoyed this assignment and it really shows with all the extensions you added!
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:
MyLocationManager
that handles all the location needs for the app. Then the individual view controllers can interact with that singleton instance to get the latest location, etc. This singleton is created from the AppDelegate
so it's tied to the app lifecycle instead of the view controller lifecycle.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 :)
@codepathreview