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

android - Why am I getting the message 'Youractivity.java is not an activity subclass or alias' -

python - How do I create a list index that loops through integers in another list -

c# - “System.Security.Cryptography.CryptographicException: Keyset does not exist” when reading private key from remote machine -