有容器视图和UITapGestureRecognizer上面.它还有一个子视图TTTAttributedLabel.
当我从容器视图中删除手势识别器时,委托方法 TTTAttributedLabelDelegate
- (void)attributedLabel:(TTTAttributedLabel *)label didSelectLinkWithURL:(NSURL *)url can be called.
Run Code Online (Sandbox Code Playgroud)
当我在容器视图上添加手势识别器时.只调用其action方法.委托方法TTTAttributedLabelDelegate不会被调用.
现在我需要在我点击链接时调用委托方法TTTAttributedLabel,并在我点击容器视图的其他区域时调用action方法.
谢谢.