hitTest:hitTest: 的應用
- (UIView *)hitTest:(CGPoint)point withEvent:(UIEvent *)event 的應用
在開發APP的UI時候,常常會遇到,touch事件超過superview的bounds,
這時就可以改寫UIView中的 - (UIView *)hitTest:(CGPoint)point withEvent:(UIEvent *)event methods來處理
參考:
https://www.jianshu.com/p/d8512dff2b3e
留言