Open ngothanhtai opened 8 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.
updateUI
func to configure itself.Cancel
button to handle this.
Models
, Views
and View Controllers
{
and }
correctly. static func loadPosters(thumbnailURL:String, detailedURL:String, posterImageView:UIImageView)
{
ImageManager.loadImage(thumbnailURL, posterImageView: posterImageView) { (thumbnailImage, fromCache) -> Void in
posterImageView.image = thumbnailImage
// your code
}
}
{
and before }
, the prefered format should besomeBlock {
someOtherBlock { // no blank line here
}
// blank line here is okay
someVar = someMoreCode
...
// blank line here is okay
someFinalCleanup() // no blank line at end of block either
}
In short, in a block, no blank line right after the start {
and right before the }
. Blank lines are welcome anywhere else in the body though.
Excellent submission overall :boom: Great job dedicating enough time to do the homework. You learned a lot! Keep up the good work.
Thank you for reviewing my code. I really appreciate it.
Hi Charles,
This is my homework assignment. /cc @coderschoolreview
Thanks, Tai