Is there any way to do this?
I tried putting the following into the subclass:
- (BOOL)canBecomeFirstResponder
{
return YES;
}
But when I sent the object a becomeFirstResponder message, it still didn't become the first responder.
Yes, it is possible. You should:
Override becomeFirstResponder to return YES.
Set userInteractionEnabled to YES.
Add a UITapGestureRecognizer to handle taps.
Call becomeFirstResponder from the tap handler.
You can even override inputView to get a input control at the bottom of the screen. Otherwise there will be nothing.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With