|
|
@@ -8,6 +8,12 @@
|
|
|
|
|
|
#import "ResultCell.h"
|
|
|
|
|
|
+@interface ResultCell ()
|
|
|
+
|
|
|
+@property (nonatomic,assign) BOOL handlingTouch;
|
|
|
+
|
|
|
+@end
|
|
|
+
|
|
|
@implementation ResultCell
|
|
|
{
|
|
|
UIColor *_normalBGColor;
|
|
|
@@ -30,6 +36,7 @@
|
|
|
}
|
|
|
UITouch *touch = [[touches allObjects] lastObject];
|
|
|
if (self.touchDelegate && [self.touchDelegate respondsToSelector:@selector(touchedCell:withForce:)]) {
|
|
|
+ self.handlingTouch = YES;
|
|
|
[self.touchDelegate touchedCell:self withForce:touch.force];
|
|
|
}
|
|
|
}
|
|
|
@@ -40,25 +47,25 @@
|
|
|
self.backgroundColor = self.touchColor;
|
|
|
}
|
|
|
|
|
|
- [super touchesBegan:touches withEvent:event];
|
|
|
+// [super touchesBegan:touches withEvent:event];
|
|
|
self.handlingTouch = NO;
|
|
|
[self touch:touches];
|
|
|
}
|
|
|
|
|
|
- (void)touchesMoved:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event {
|
|
|
- [super touchesMoved:touches withEvent:event];
|
|
|
+// [super touchesMoved:touches withEvent:event];
|
|
|
[self touch:touches];
|
|
|
}
|
|
|
|
|
|
- (void)touchesEnded:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event {
|
|
|
self.backgroundColor = _normalBGColor;
|
|
|
- [super touchesEnded:touches withEvent:event];
|
|
|
+// [super touchesEnded:touches withEvent:event];
|
|
|
[self touch:touches];
|
|
|
}
|
|
|
|
|
|
- (void)touchesCancelled:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event {
|
|
|
self.backgroundColor = _normalBGColor;
|
|
|
- [super touchesCancelled:touches withEvent:event];
|
|
|
+// [super touchesCancelled:touches withEvent:event];
|
|
|
[self touch:touches];
|
|
|
}
|
|
|
|