Open yatchoi opened 8 years ago
Nice work Yat! We designed this homework so that you can get experience building an app that's more similar in complexity to a production app. It's also useful to have practical experience building a container view controller, which is a more advanced topic. The optional account switching feature is interesting because you have to think about how TwitterClient is caching the access token to make sure it works correctly for multiple accounts.
A couple of notes after checking out your code / gif:
ContainerViewController
. In particular, I don't see you calling didMovetoParentViewController anywhere.TweetCell
for a tweet
property that you use to configure all the views instead of having the populateWithTweet
method.You can also find our overall Twitter assignment feedback guide below:
tweet.retweet()
. You can even pass in an optional block if you want to handle a failure of the network event.ProfileViewController
and the TimelineViewController
both contain a feed of tweets. There are three general strategies: you can have a single view controller that conditionally has the profile header, you can create the ProfileViewController as a subclass of the TimelineViewController, or you can create a separate class called a TimelineController (not a view controller). TimelineController is a dataSource and a delegate to a UITableView and knows how to show a feed of tweets.ContentViewController
and the MenuViewController
.MenuViewController
and ContentViewController
in the HamburgerViewController
, it's a good idea to use property observers to call the appropriate view controller lifecycle methods.
Completed twitter assignment: @codepathreview
I didn't get to spend as much time on this as I'd have liked, and I lost a lot of time doing programmatic AutoLayout.