mrugen munshi
mrugen munshi

Reputation: 3607

Unhide the keyboard in iphone

In my application what is want is when user clicks on button next view is pushed and default keyboard should be open in the pushed view .

Thanks in advance

Upvotes: 0

Views: 245

Answers (3)

Nevin
Nevin

Reputation: 7819

in your next view, call the becomeFirstResponder method from the input field.

e.g. [[nextViewController] usernameField] becomeFirstResponder];

Upvotes: 0

Sebastian Wramba
Sebastian Wramba

Reputation: 10127

You'll have to use -becomeFirstResponder: in the -viewDidAppear: method.

-(void)viewDidAppear:(BOOL)animated {
    [super viewDidAppear:animated];        
    [yourTextField becomeFirstResponder];
}

This will make the keyboard appear.

Upvotes: 3

Thomas Clayson
Thomas Clayson

Reputation: 29935

Assuming you have a text field or something in that view you need to do this:

[myTextView becomeFirstResponder] in your viewDidLoad method.

Upvotes: 2

Related Questions