2016-05-31 16 views

回答

0

嘗試實現這樣的:

在您的視圖控制器:

@property (nonatomic, retain) IBOutlet UITextView *abc; 

鏈接無法點擊默認情況下,在UITextView對使用​​此:

self.abc.text = content; 
self.abc.editable = NO; 
self.abc.dataDetectorTypes = UIDataDetectorTypeLink; 

,並確保User Interaction Enabled在IB屬性檢查器的視圖部分的底部被檢查(如果你打算使用xib)。

相關問題