Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

didClick代理方法不调用问题。但是didLongPress有调用 #41

Closed
whihail opened this issue May 4, 2016 · 5 comments
Closed

Comments

@whihail
Copy link

whihail commented May 4, 2016

不知为何MLLinkLabel一直不调用这两个方法:

  • (void)touchesEnded:(NSSet *)touches withEvent:(UIEvent *)event
  • (void)touchesMoved:(NSSet *)touches withEvent:(UIEvent *)event

调完

  • (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event
    之后就直接调
  • (void)touchesCancelled:(NSSet *)touches withEvent:(UIEvent *)event

我也不知道什么原因,写法和你的demo一模一样,但是就是不知道为什么,我用的pod导入你的代码

@molon
Copy link
Owner

molon commented May 5, 2016

@Chengjiaming userInteractionEnabled 是不是设置为NO了。

@molon molon closed this as completed May 5, 2016
@whihail
Copy link
Author

whihail commented May 5, 2016

设置成YES了哦!
现在发现需要长按好久大概4、5秒才会回调didClick、都不知道什么问题、你的dome是没有问题的。

发自我的 iPhone

在 2016年5月5日,09:49,molon notifications@github.com 写道:

@Chengjiaming userInteractionEnabled 是不是设置为NO了。


You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub

@molon
Copy link
Owner

molon commented May 5, 2016

@Chengjiaming
那你看下我demo里的
ListNoNibTableViewCell.m
- (BOOL)gestureRecognizer:(UIGestureRecognizer *)gestureRecognizer shouldReceiveTouch:(UITouch *)touch
这里的实现,你有木有处理,可能是由于被上层手势给阻挡了。需要对手势的回调进行下过滤处理。

@molon molon reopened this May 5, 2016
@whihail
Copy link
Author

whihail commented May 5, 2016

有的呀!

发自我的 iPhone

在 2016年5月5日,16:20,molon notifications@github.com 写道:

@Chengjiaming
那你看下我demo里的
ListNoNibTableViewCell.m

  • (BOOL)gestureRecognizer:(UIGestureRecognizer *)gestureRecognizer shouldReceiveTouch:(UITouch *)touch
    这里的实现,你有木有处理。


You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub

@molon
Copy link
Owner

molon commented May 6, 2016

@Chengjiaming 那就不滋道了。。 没有更详细的信息来判断啊。。

@molon molon closed this as completed Jul 19, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants