mirror of
https://github.com/HackPlan/AsyncDisplayKit.git
synced 2026-04-24 03:45:58 +08:00
cleaned up model, view files
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user