liansongBackView.m 622 B

1234567891011121314151617181920212223242526272829
  1. //
  2. // liansongBackView.m
  3. // live1v1
  4. //
  5. // Created by IOS1 on 2019/5/8.
  6. // Copyright © 2019 IOS1. All rights reserved.
  7. //
  8. #import "liansongBackView.h"
  9. @implementation liansongBackView
  10. /*
  11. // Only override drawRect: if you perform custom drawing.
  12. // An empty implementation adversely affects performance during animation.
  13. - (void)drawRect:(CGRect)rect {
  14. // Drawing code
  15. }
  16. */
  17. // 去除连送礼物view的点击
  18. - (UIView*)hitTest:(CGPoint)point withEvent:(UIEvent *)event{
  19. UIView *hitView = [super hitTest:point withEvent:event];
  20. if(hitView == self){
  21. return nil;
  22. }
  23. return hitView;
  24. }
  25. @end