第一张图中,tap gesture是可以在红框框中点击的。
然后我删除了购物车中的item,改变了白色tablview的frame,这个时候将blur view 多暴露的一块。
第二张图,下面的小红框框,blur view 多暴露的这一块,tap 就失效了。
我尝试过每次改变tableview的frame之后,再次添加gesture,但是无效。
self.blurEffectView.frame = CGRectMake(0, 0, self.view.frame.size.width, rootView.frame.size.height - cartViewHeight);
// let blur view full of screen.
self.tapGesture = [[UITapGestureRecognizer alloc]initWithTarget:self action:@selector(tapGestureHandle:)];
[self.blurEffectView addGestureRecognizer:self.tapGesture];
May be obscured, or provide as many codes as possible
In order to better help you solve the problem, it is recommended that you provide a demo
Is it effective to remove first and then add it?
Does this gesture conflict with tableview’s didselect? You have disabled didselect and try again