1234567891011121314151617181920212223242526 |
- //
- // LDPostVCbtnView.m
- // jiaPei
- //
- // Created by EchoShacolee on 2018/3/29.
- // Copyright © 2018年 JCZ. All rights reserved.
- //
- #import "LDPostVCbtnView.h"
- @implementation LDPostVCbtnView
- -(UIView *)hitTest:(CGPoint)point withEvent:(UIEvent *)event{
- UIView *view = [super hitTest:point withEvent:event];
-
- if (view == nil && self.subviews.count != 0) {
- UIView *btn = self.subviews[0];
- CGPoint temPoint = [btn convertPoint:point fromView:self];
- if (CGRectContainsPoint(btn.bounds, temPoint)) {
- view = btn;
- }
- }
- return view;
- }
- @end
|