cleaned up model, view files

This commit is contained in:
Hannah Troisi
2016-03-29 13:00:44 -07:00
parent 0f4481718c
commit 53741a4e0a
17 changed files with 44 additions and 524 deletions

View File

@@ -15,7 +15,6 @@
UIImageView *_photoImageView;
}
#pragma mark - Lifecycle
- (instancetype)initWithFrame:(CGRect)frame
@@ -27,10 +26,6 @@
_photoImageView = [[UIImageView alloc] init];
[_photoImageView setPin_updateWithProgress:YES];
[self.contentView addSubview:_photoImageView];
// tap gesture recognizer
UITapGestureRecognizer *tgr = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(cellWasTapped:)];
[self addGestureRecognizer:tgr];
}
return self;
@@ -51,7 +46,6 @@
_photoImageView.image = nil;
}
#pragma mark - Instance Methods
- (void)updateCellWithPhotoObject:(PhotoModel *)photo
@@ -60,12 +54,4 @@
[_photoImageView pin_setImageFromURL:photo.URL];
}
#pragma mark - Gesture Handling
- (void)cellWasTapped:(UIGestureRecognizer *)sender
{
NSLog(@"Photo was tapped");
}
@end