美文网首页
scrollview或mapview响应baseView滑动事件

scrollview或mapview响应baseView滑动事件

作者: noname004 | 来源:发表于2022-05-27 18:04 被阅读0次

#import "ZNBaseView.h"

@implementation ZNBaseView

- (UIView*)hitTest:(CGPoint)pointwithEvent:(UIEvent*)event{

    if (self.respondView) {

        ///触点是否落在本视图上

        if([selfpointInside:pointwithEvent:event]) {

            returnself.respondView;

        }

    }

   return[superhitTest:pointwithEvent:event];

}

@end

相关文章

网友评论

      本文标题:scrollview或mapview响应baseView滑动事件

      本文链接:https://www.haomeiwen.com/subject/escvprtx.html