Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何在 UITextview 中禁用cut, copy,paste但我想在 uitextview 中启用链接 有可能吗?
cut
copy
paste
您可以使用总是返回 NO的UITextFieldDelegate协议。textField:shouldChangeCharactersInRange:这样,您可以获取事件但使该字段不可编辑。
UITextFieldDelegate
textField:shouldChangeCharactersInRange: