how to retrieve a link from text view. When user click a开发者_运维技巧n link , i need to capture that link. Any way to do that ?
Just implement -application:handleOpenURL: in your app delegate. Return NO to avoid opening the URL.
Just subclass UIApplication and override its -openURL: method, e.g.
-(BOOL)openURL:(NSURL*)theURL {
   if (shouldOpenURL(theURL))
     return [super openURL:theURL];
   else
     return NO;
}
You cannot detect clicks in regular UITextView. If you want that functionality, use UIWebView instead, and implement UIWebViewDelegate, so you can intercept clicks by implementing this method
- (BOOL)webView:(UIWebView *)webView shouldStartLoadWithRequest:(NSURLRequest *)request navigationType:(UIWebViewNavigationType)navigationType
 
         
                                         
                                         
                                         
                                        ![Interactive visualization of a graph in python [closed]](https://www.devze.com/res/2023/04-10/09/92d32fe8c0d22fb96bd6f6e8b7d1f457.gif) 
                                         
                                         
                                         
                                         加载中,请稍侯......
 加载中,请稍侯......
      
精彩评论