透明视图不影响下方视图操作方法

2016-06-24  本文已影响22人  NICE_KEY
- (UIView *)hitTest:(CGPoint)point withEvent:(UIEvent *)event {
  UIView *result = [super hitTest:point withEvent:event];
  if (result == self) {
      return nil;
  } else {
      return result;
  }
}
上面方法用来设置下方视图的操作
上一篇 下一篇

猜你喜欢

热点阅读