Can't make URL clickable in UITextView Can't make URL clickable in UITextView ios ios

Can't make URL clickable in UITextView


Check the "Selectable" and "Links" checkboxes in the textview Attributes Inspector:

enter image description here


Try to use this Hope this help to you

Links are not clickable by default in a UITextView. But luckily they can be enabled with a few simple lines of code:

self.review.editable = NO;//requiredself.review.selectable = YES;//requiredself.review.dataDetectorTypes = UIDataDetectorTypeLink;

Unfortunately you cannot have an editable UITextView with clickable links. If you set editable to YES, then all links will be treated as regular text.

EDIT

Have u check properly it may be UITextview disable in your .xib file.


The issue was that User Interaction Enabled wasn't checked at the bottom of the View section of IB's Attributes Inspector.