父窗口不响应touch事件 子窗口相应touch事件 hitTest

uiview addition
-(id)hitTest:(CGPoint)point withEvent:(UIEvent *)event {     id hitView = [super hitTest:point withEvent:event];     if (hitView == self) return nil;     else return hitView; }

你可能感兴趣的:(UIView)