【Swift】UITableViewCell 中 TTTAttributedLabel 超链接无法点击的问题
代码: 在 UITableViewCell 中 1 2 3 4 5 6 7 8 9 10 11 override func gestureRecognizer ( gestureRecognizer : UIGestureRecognizer , shouldReceiveTouch touch : UITouch ) - > Bool { if let label = touch . view as ? TTTAttributedLabel , let link = label . linkAtPoint ( touch . locationInView ( label ))?. result { if let url = link . URL where ( link . numberOfRanges ?? 0 ) > 0 { if UIApplication . sharedApplication (). canOpenURL ( url ) { UIApplication . sharedApplication (). openURL ( url ) } ...