0
UIwebview
我們可以檢測到Phone,URL
,郵件地址。是否可以檢測UITextview
控件中的所有項目,如webview
。 請分享您的意見。統一視圖可以作爲UIwebview
UIwebview
我們可以檢測到Phone,URL
,郵件地址。是否可以檢測UITextview
控件中的所有項目,如webview
。 請分享您的意見。統一視圖可以作爲UIwebview
嘗試實現這樣的:
在您的視圖控制器:
@property (nonatomic, retain) IBOutlet UITextView *abc;
鏈接無法點擊默認情況下,在UITextView
對使用此:
self.abc.text = content;
self.abc.editable = NO;
self.abc.dataDetectorTypes = UIDataDetectorTypeLink;
,並確保User Interaction Enabled
在IB屬性檢查器的視圖部分的底部被檢查(如果你打算使用xib)。
看看'UITextView'的'dataDetectorTypes'屬性? – Larme