Amanda's Relationship Tips app, with scroll performance issues
What is this?


//////////////////////////CONFIGURE THE CELL//////////////////////////

////USER NAME//////////////////////////////////////

//User's Profile Picture//

////DATE LABEL (WHEN CREATED)/////////////////////////

////DESCRIPTION TEXT OF POST/////////////////////////////////

////COMMENT BUTTON/////////////////////////////////////////////////////

////////////////////////////



It's good to break your code into small, digestable chunks, but when you're using comments like this to segment them out, you're doing it wrong.

If you'd just create some small, reusable, testable methods, you wouldn't need comments like this.  The method names themselves will document every thing that's happening here.




 UILabel *cUser = (UILabel*) [cell viewWithTag:105];

 profilePictureAttributes *thumbnailImageView = (profilePictureAttributes*)[cell viewWithTag:106];

 UILabel *dateLabel = (UILabel*) [cell viewWithTag:102];

 UITextView *postLabel = (UITextView*) [cell viewWithTag:103];

 CommentButton *commentButton = (CommentButton*) [cell viewWithTag:222];



This sort of code is extraordinarily prone to error.  We've taken the time to create our WallCell class, so why add the proper methods for setting our cell up correctly?

Seems like your WallCell class should have exposed the following methods:

- (void)setPostAuthor:(NSString *)author;
- (void)setProfilePicture:(UIImage *)profilePicture;
- (void)setPostDate:(NSDate *)date;
- (void)setPostMessage:(NSString *)message;
- (void)addTarget:(id)target forAction:(SEL)action withIndex:(NSInteger)index;


Although... I might argue that it should be even simpler.  You should replace the first four methods with:

- (void)setPost:(WallPost *)post;


Where the WallPost class looks something like this:

@property User *postAuthor;
@property NSDate *postDate;
@property NSString *message;


And the User class looks something like this:

@property NSString *name;
@property UIImage *profilePicture;


(although, arguably, that last one is maybe just the URL to the picture)