iPhone – Click on the word in UITextView

I want to allow users to type some text in my iPhone app, when they click/touch a word or sentence, and then call the method on that word.

My question is what should I do?

I got this idea from the application AudioNote: http://luminantsoftware.com/iphone/audionote.html

Does anyone know how to do it? !

It looks like they may be using UIWebView to display text. This allows you to apply different formats For single words.

To handle clicked words, you can create them as hyperlinks and use the following methods to detect touches:

- (BOOL)webView:(UIWebView *)webView shouldStartLoadWithRequest:(NSURLRequest *)request navigationType:(UIWebViewNavigationType)navigationType

**Oops, sorry forgot to enter the text. I don’t know how to do this with webview.

I want to allow users to type some text in my iPhone app, when they click/touch a word or sentence, and then call the method on that word. < p>

My question is what should I do?

I got this idea from the application AudioNote: http://luminantsoftware.com/iphone/audionote.html

Does anyone know how to do it? !

It looks like they may be using UIWebView to display text. This enables you to apply different formats to individual words.

< p>To handle clicked words, you can create them as hyperlinks and use the following methods to detect touches:

- (BOOL)webView:(UIWebView *)webView shouldStartLoadWithRequest: (NSURLRequest *)request navigationType:(UIWebViewNavigationType)navigationType

**Oops, sorry forgot to enter the text. I don’t know how to do this with webview.

< /p>

Leave a Comment

Your email address will not be published.