1.子视图不响应父视图手势方法
思路:在子视图上额外加一个手势,action设置为nil即可
UITapGestureRecognizer *tapNull = [[UITapGestureRecognizer alloc] initWithTarget:self action:nil];
[subView addGestureRecognizer:tapNull];
思路:在子视图上额外加一个手势,action设置为nil即可
UITapGestureRecognizer *tapNull = [[UITapGestureRecognizer alloc] initWithTarget:self action:nil];
[subView addGestureRecognizer:tapNull];
本文标题:UIView问题点集合
本文链接:https://www.haomeiwen.com/subject/pedaqftx.html
网友评论