// // ResultCell.m // Apex Mobile // // Created by Jack on 2018/2/14. // Copyright © 2018年 United Software Applications, Inc. All rights reserved. // #import "ResultCell.h" @implementation ResultCell - (void)awakeFromNib { [super awakeFromNib]; // Initialization code } - (void)setSelected:(BOOL)selected animated:(BOOL)animated { [super setSelected:selected animated:animated]; // Configure the view for the selected state } - (void)touch:(NSSet *)touches { if (self.handlingTouch) { return; } UITouch *touch = [[touches allObjects] lastObject]; if (self.touchDelegate && [self.touchDelegate respondsToSelector:@selector(touchedCell:withForce:)]) { [self.touchDelegate touchedCell:self withForce:touch.force]; } } - (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event { self.handlingTouch = NO; [self touch:touches]; } - (void)touchesMoved:(NSSet *)touches withEvent:(UIEvent *)event { [self touch:touches]; } - (void)touchesEnded:(NSSet *)touches withEvent:(UIEvent *)event { [self touch:touches]; } - (void)touchesCancelled:(NSSet *)touches withEvent:(UIEvent *)event { [self touch:touches]; } @end