【发布时间】:2014-04-16 04:48:39
【问题描述】:
上面有容器视图和UITapGestureRecognizer。它还有一个子视图TTTAttributedLabel。
当我从容器视图中移除手势识别器时,TTTAttributedLabelDelegate 的委托方法
- (void)attributedLabel:(TTTAttributedLabel *)label didSelectLinkWithURL:(NSURL *)url can be called.
当我在容器视图上添加手势识别器时。只有它的动作方法被调用。不会调用TTTAttributedLabelDelegate 的委托方法。
现在我需要在点击TTTAttributedLabel 中的链接时调用委托方法,并在点击容器视图的其他区域时调用操作方法。
谢谢。
【问题讨论】:
标签: ios objective-c uitapgesturerecognizer tttattributedlabel