xxxxxxxxxx
class TextField: UITextField {
override func canPerformAction(action: Selector, withSender sender: AnyObject?) -> Bool {
if action == Selector("paste:") || action == Selector("copy:") {
return false
}
return super.canPerformAction(action, withSender: sender)
}
}