I have the same problem, cannot pay from Russia for apple development program
Post
Replies
Boosts
Views
Activity
In swift 5 the code looks like this:
open override func canPerformAction(_ action: Selector, withSender sender: Any?) -> Bool {
if action == #selector(UIResponderStandardEditActions.paste(_:)) {
return false
}
return super.canPerformAction(action, withSender: sender)
}
You still have to use a custom UITextField and set your UITextField component to use a custom class (as mentioned before).