ReplyCell.m 835 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. //
  2. // ReplyCell.m
  3. // shiku_im
  4. //
  5. // Created by Apple on 16/6/25.
  6. // Copyright © 2016年 Reese. All rights reserved.
  7. //
  8. #import "ReplyCell.h"
  9. @implementation ReplyCell
  10. @synthesize label;
  11. -(void)prepareForReuse
  12. {
  13. self.label.match=nil;
  14. }
  15. - (void)awakeFromNib {
  16. [super awakeFromNib];
  17. // Initialization code
  18. }
  19. -(void)touchesEnded:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event{
  20. UITouch* touch = [touches anyObject];
  21. CGPoint point = [touch locationInView:self];
  22. self.pointIndex = point.x/10;
  23. // printf("point = %lf,%lf\n", point.x, point.y);
  24. // [self setNeedsDisplay];
  25. [super touchesEnded:touches withEvent:event];
  26. }
  27. - (void)setSelected:(BOOL)selected animated:(BOOL)animated {
  28. [super setSelected:selected animated:animated];
  29. // Configure the view for the selected state
  30. }
  31. @end