ResultCell.m 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. //
  2. // ResultCell.m
  3. // Apex Mobile
  4. //
  5. // Created by Jack on 2018/2/14.
  6. // Copyright © 2018年 United Software Applications, Inc. All rights reserved.
  7. //
  8. #import "ResultCell.h"
  9. @interface ResultCell ()
  10. @property (nonatomic,assign) BOOL handlingTouch;
  11. @end
  12. @implementation ResultCell
  13. {
  14. UIColor *_normalBGColor;
  15. }
  16. - (void)awakeFromNib {
  17. [super awakeFromNib];
  18. // Initialization code
  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. //
  25. //- (void)touch:(NSSet<UITouch *> *)touches {
  26. // if (self.handlingTouch) {
  27. // return;
  28. // }
  29. // UITouch *touch = [[touches allObjects] lastObject];
  30. // if (self.touchDelegate && [self.touchDelegate respondsToSelector:@selector(touchedCell:withForce:)]) {
  31. // self.handlingTouch = YES;
  32. // [self.touchDelegate touchedCell:self withForce:touch.force];
  33. // }
  34. //}
  35. //
  36. //- (void)touchesBegan:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event {
  37. // if (self.touchColor) {
  38. // _normalBGColor = self.backgroundColor;
  39. // self.backgroundColor = self.touchColor;
  40. // }
  41. //
  42. //// [super touchesBegan:touches withEvent:event];
  43. // self.handlingTouch = NO;
  44. // [self touch:touches];
  45. //}
  46. //
  47. //- (void)touchesMoved:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event {
  48. //// [super touchesMoved:touches withEvent:event];
  49. // [self touch:touches];
  50. //}
  51. //
  52. //- (void)touchesEnded:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event {
  53. // self.backgroundColor = _normalBGColor;
  54. //// [super touchesEnded:touches withEvent:event];
  55. // [self touch:touches];
  56. //}
  57. //
  58. //- (void)touchesCancelled:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event {
  59. // self.backgroundColor = _normalBGColor;
  60. //// [super touchesCancelled:touches withEvent:event];
  61. // [self touch:touches];
  62. //}
  63. @end