PushStateCell.m 734 B

12345678910111213141516171819202122232425262728293031
  1. //
  2. // PushStateCell.m
  3. // model
  4. //
  5. // Created by MUMEI on 2018/8/2.
  6. // Copyright © 2018年 Mine. All rights reserved.
  7. //
  8. #import "PushStateCell.h"
  9. @implementation PushStateCell
  10. - (void)awakeFromNib {
  11. [super awakeFromNib];
  12. UITapGestureRecognizer *Tap = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(toImage:)];;
  13. [self.pushImage addGestureRecognizer:Tap];
  14. self.pushImage.userInteractionEnabled = YES;
  15. // Initialization code
  16. }
  17. - (void)toImage:(UITapGestureRecognizer*)recognizer{
  18. [self.delegate clickImage];
  19. }
  20. - (void)setSelected:(BOOL)selected animated:(BOOL)animated {
  21. [super setSelected:selected animated:animated];
  22. // Configure the view for the selected state
  23. }
  24. @end