Open trungdq88 opened 9 years ago
:+1: nice work. The point of this homework was to explore a simple example of a full MVC application with a RESTful API. You learned about UITableViews, custom UITableViewCells, navigation from a UITableView, and basic networking.
I'm going to guess you're a Java programmer? Great job trying to encapsulate your software here. You might not have to build this much abstraction in future assignments.
One thing you can do is have required methods in protocols
instead of doing this:
func getApi() -> MovieApi {
preconditionFailure("This method must be overridden")
}
For more information, you can read the Apple Documentation.
movie
instance. let task = session.dataTaskWithURL(url!) { (data: NSData?, response: NSURLResponse?, error: NSError?) -> Void in
guard error == nil else {
print("ERROR fetching movies", error)
return
}
Date truncated:
Last but not least - you should learn how to use the Asset Catalog for images: http://guides.codepath.com/ios/Adding-Image-Assets
Great job dedicating enough time to do the homework. You learned a lot! Keep up the good work. Next time try to do all the optionals, like the Search Bar. =)
I have finished assignment 1 (movie review application), please review, thank you! README file: https://github.com/trungdq88/learn-swift/tree/master/assignment-1 /cc @coderschoolreview