0
以上是我在圖像存在的快捷菜單,複製等,所以我加了下面的代碼:
- (BOOL)canPerformAction:(SEL)action withSender:(id)sender {
[[NSOperationQueue mainQueue] addOperationWithBlock:^{
[[UIMenuController sharedMenuController] setMenuVisible:NO animated:NO];
[self resignFirstResponder];
}];
return [super canPerformAction:action withSender:sender];
}
所以我刪除彈出通過添加上面的代碼,但藍色的顏色效果仍然存在,當我雙擊該鏈接,這是我嵌入文本視圖
如何刪除此textview上的藍色選擇?它出現時,我雙擊它。我不想出現這種情況。
要禁用選擇還是僅禁用視覺效果? http://stackoverflow.com/questions/11606007/change-uitextfield-and-uitextview-cursor-caret-color? – Larme
我想禁用藍色效果意味着可視化 – user6325467
可能重複[如何禁用複製,剪切,選擇,全選在UITextView](http://stackoverflow.com/questions/1426731/how-disable-copy-cut-select - 選擇 - 所有功能於UITextView的) – Basanth