How to set focus to a textfield in iphone? [closed]
How do you programmatically set focus to some textfield in iPhone as the result of pressing on the textfield? rckoenes Just make the textField firstresponder, this will also popup the keyboard: [self.textField becomeFirstResponder]; And just some more typical example code which may help someone, in your storyboard, click on one of the text fields, and set the outlets-delegate to be the class in question. In that class, in the .h file make sure that you declare that it is a UITextFieldDelegate @interface Login : UIViewController <UITextFieldDelegate> Then in the .m file, you could have this for