How do I automatically load the keyboard (iOS SDK)?

ios, keyboard, sdk, uitextfield, view

Solution

In your `viewDidAppear:` method call `[yourTextField becomeFirstResponder]`.

Problem

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

Original source