如何禁用“复制”,“全选” UITextView,但我需要在中单击链接UITextview。
这是所有动作禁用,但允许选择。我只需要可点击的链接。
override func canPerformAction(_ action: Selector, withSender sender: Any?) -> Bool {
return false
}
Run Code Online (Sandbox Code Playgroud) 我正在使用快速代码,但未更改文件扩展名。
这是我的快速代码
let url = NSURL(fileURLWithPath: outputURL.path).deletingPathExtension?.appendingPathExtension("mp3")
Run Code Online (Sandbox Code Playgroud)