Open mkim177-zz opened 11 years ago
Mark, I see that error sometimes, I believe it is a harmless error despite what it's claiming. Good job on the homework overall.
init
like initWithTweet
unless it's actually a constructor. By convention, init
methods are always called together with alloc
. Instead of initWithTweet
, you could have created a tweet
property and configured the views in the custom setter.NSURL * imageURL = [NSURL URLWithString:tweet.profilePicUrl];
NSData * imageData = [NSData dataWithContentsOfURL:imageURL];
UIImage * image = [UIImage imageWithData:imageData];
[self.profileImageView setImage:image];
Instead, do this:
// #import "UIImageView+AFNetworking.h" <-- requires this category
[self.profileImageView setImageWithURL:[NSURL URLWithString:tweet.profilePicUrl]];
heightForRowAtIndexPath
, don't alloc a cell just to get the height, that will be very slow.The main takeaways for this homework were:
Here's my checklist of things I'm looking at when I'm reviewing this project.
Notes:
Questions:
/cc @nesquena @timothy1ee