Post

Replies

Boosts

Views

Activity

Reply to Disable back button while keyboard is in use?
Thanks for the suggestion Claude. I tried the below, did not resolve the issue (error made me include "self" to start the "isEnabled" line): @objc func keyboardWillShow(notification: Notification) { print("keyboard is here") DispatchQueue.main.async { () -> Void in self.backButton.isEnabled = false } }I click the keyboards, "keyboard is here" prints to the console, but nothing happens to the back button. I'm using both default (qwerty) and decimal pads on keyboards.Without the "self" in there, the error is: Reference to property 'backButton' in closure requires explicit 'self.' to make capture semantics explicit
Jan ’20