Re: [IPhone 3.0] How do I make a UITextField the first responder?
Re: [IPhone 3.0] How do I make a UITextField the first responder?
- Subject: Re: [IPhone 3.0] How do I make a UITextField the first responder?
- From: "Georg C. Brückmann" <email@hidden>
- Date: Tue, 25 Aug 2009 12:42:34 +0200
On 25.08.2009, at 12:30, Brian Bruinewoud wrote:
I have a simple view that contains a UITextField and a UIButton. The
user will most often want to type text and ignore the button. Is
there some way I can make the keyboard appear immediately that view
is shown? I can't find anything in IB and reading about UITextField,
UIView, UIWindow, UIResponder didn't enlighten me.
-[UIResponder becomeFirstResponder], e. g.:
- (void)viewDidLoad {
[super viewDidLoad];
[_myTextFieldOutlet becomeFirstResponder];
}
– Georg
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden