I have a UITextField outlet declared in my primary view controller that is attached to the "encoder" tab. The "ViewController.swift" is linked to the ViewController. For some reason when a double tap (and or hold) the UITextField, the copy, paste, select/select all options are not showing. They are supposed to show even though the text field module is empty. I tried to implement this:
It gives me the paste option but the thread crashes with this message:
How can I enable the copy, paste, select/select all options for the UITextField like it was before? or how can I enable them programatically?
Code Block override var canBecomeFirstResponder: Bool { return true } override func canPerformAction(_ action: Selector, withSender sender: Any?) -> Bool { return (action == #selector(UIResponderStandardEditActions.paste(_:))) }
It gives me the paste option but the thread crashes with this message:
Code Block Thread 1: "-[String_Conversion_Tool.ViewController paste:]: unrecognized selector sent to instance 0x104e09860"
How can I enable the copy, paste, select/select all options for the UITextField like it was before? or how can I enable them programatically?