I just started to suspect that calling resignFirstResponder
directly is not actually allowed. Unlike NSResponder
, it's allowed to call becomeFirstResponder
directly in UIKit. So far I was making assumption that calling resignFirstResponder
would be okay too. But in fact, the manual says resignFirstResponder
method is there to get notified, and mentions nothing about direct calling.
Notifies this object that it has been asked to relinquish its status as first responder in its window.
If it's designed in same way of how NSResponder
works, direct calling to resignFirstResponder
wouldn't be allowed though there's no obvious way to figure out validity of the call in the manual...
If it's been designed not to be called directly, directly calling to the method would be harmful or make code harder to maintain.
Is it okay to call UIResponder.resignFirstResponder
method directly?