1

func canPerformAction(action: Selector, withSender sender: AnyObject?) -> Bool { // 禁用复制,全选,粘贴 if action == #selector(UIResponderStandardEditActions.copy( :)) || 动作 == #selector(UIResponderStandardEditActions.selectAll( :)) || action == #selector(UIResponderStandardEditActions.paste(_:)) { return false } // 默认 return super.canPerformAction(action, withSender: sender) }

4

0 回答 0