ios - iPhone, tapGesture 在一个view 改变之后就不工作了?
天蓬老师
天蓬老师 2017-04-18 09:27:15
0
4
365

第一张图中,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];


天蓬老师
天蓬老师

欢迎选择我的课程,让我们一起见证您的进步~~

reply all(4)
阿神

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

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!