Tag: ios9 nsurl

点击UITextView中的NSURL

我有UITextView横跨我的UIView 100.0点。 在UITextView ,我有以下函数捕获的链接: – (BOOL) textView:(UITextView *)textView shouldInteractWithURL:(NSURL *)URL inRange:(NSRange)characterRange 这很好的捕捉特定的字符,但我有一个问题:如果链接是文本视图中的最后一个字符,那么点击将被按下。 所以,如果我有以下文本的文本视图@test是链接: // The entire remainder of the line will be the link (all the white space after @test) Hello @test 我该如何解决?