really simple question:
I got a view that consists of two textfields. When the view loads I want the keyboard to automatically pop up and focus the first field.
How do I do that? (In code? In IB?)
Thanks a lot! wasabi
In your viewDidAppear:
method call [yourTextField becomeFirstResponder]
.
[myTextField becomeFirstResponder]
should do the trick.
Also make sure you implement the UITextFieldDelegate
methods where you can hide the first responder.
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