Reputation: 3607
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
Reputation: 7819
in your next view, call the becomeFirstResponder method from the input field.
e.g. [[nextViewController] usernameField] becomeFirstResponder];
Upvotes: 0
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
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