ios - Clicking on a link attribute in UITextView -


i have uitextview defined as:

uitextview *textview = [[uitextview alloc] initwithframe:cgrectmake(0, 0, 100, 40); 

i have attributedtext so:

textview.attributedtext = @"testing #tag"; 

when on screen, attributed text takes half (or so) width of text view. since made #tag clickable link , used function below, white space after #tag clickable.

- (bool) textview:(uitextview *)textview shouldinteractwithurl:(nsurl *)url inrange:(nsrange)characterrange 

how stop white space being clickable?


Comments

Popular posts from this blog

SVG stroke-linecap doesn't work for circles in Firefox? -

routes - Laravel 4 Wildcard Routing to Different Controllers -

cross browser - XSLT namespace-alias Not Working in Firefox or Chrome -