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>

WordPress database error: [Table 'yf99682.wp_s6mz6tyggq_comments' doesn't exist]
SELECT SQL_CALC_FOUND_ROWS wp_s6mz6tyggq_comments.comment_ID FROM wp_s6mz6tyggq_comments WHERE ( comment_approved = '1' ) AND comment_post_ID = 1102 ORDER BY wp_s6mz6tyggq_comments.comment_date_gmt ASC, wp_s6mz6tyggq_comments.comment_ID ASC

Leave a Comment

Your email address will not be published.