0

I have a UITextView defined as:

UITextView *textView = [[UITextView alloc] initWithFrame:CGRectMake(0, 0, 100, 40);

I then have an attributedText like so:

textView.attributedText = @"Testing #tag";

When this is on the screen, the attributed text only takes up half (or so) the width of the text view. But since I made the #tag a clickable link and used the function below, all the white space after #tag is clickable.

- (BOOL) textView:(UITextView *)textView shouldInteractWithURL:(NSURL *)URL inRange:(NSRange)characterRange

How do I stop white space from being clickable?

cdub
  • 24,555
  • 57
  • 174
  • 303

0 Answers0