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

留言

這個網誌中的熱門文章

[吉他譜]小酒窩

[吉他譜]可惜你不在

[軍旅]八二大隊+士官訓(一)