// // PushStateCell.m // model // // Created by MUMEI on 2018/8/2. // Copyright © 2018年 Mine. All rights reserved. // #import "PushStateCell.h" @implementation PushStateCell - (void)awakeFromNib { [super awakeFromNib]; UITapGestureRecognizer *Tap = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(toImage:)];; [self.pushImage addGestureRecognizer:Tap]; self.pushImage.userInteractionEnabled = YES; // Initialization code } - (void)toImage:(UITapGestureRecognizer*)recognizer{ [self.delegate clickImage]; } - (void)setSelected:(BOOL)selected animated:(BOOL)animated { [super setSelected:selected animated:animated]; // Configure the view for the selected state } @end