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
Post a Comment