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

sql - VB.NET Operand type clash: date is incompatible with int error -

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

python - TypeError: Scalar value for argument 'color' is not numeric in openCV -