//
//  SSCardCollectImagesCell.m
//  Open
//
//  Created by 雷俊博 on 2019/11/20.
//  Copyright © 2019 黄江涛 . All rights reserved.
//

#import "SSCardCollectImagesCell.h"

@implementation SSCardCollectImagesCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
    
     UITapGestureRecognizer *tapGestureRecognizer1 = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(scanBigImageClick1:)];
    
    [self.img1 addGestureRecognizer:tapGestureRecognizer1];
    
    UITapGestureRecognizer *tapGestureRecognizer2 = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(scanBigImageClick2:)];
       
       [self.img2 addGestureRecognizer:tapGestureRecognizer2];
    
    
}

-(void)scanBigImageClick1:(UITapGestureRecognizer *)tap
{
    if (self.delegate && [self.delegate respondsToSelector:@selector(clickImageView:)] && self.img1.image) {
       
        [self.delegate clickImageView:tap];
    }
}
-(void)scanBigImageClick2:(UITapGestureRecognizer *)tap
{
    if (self.delegate && [self.delegate respondsToSelector:@selector(clickImageView:)] && self.img2.image) {
       
        [self.delegate clickImageView:tap];
    }
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
