views:

45

answers:

3

Hi 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

+1  A: 

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

[myTextView becomeFirstResponder] in your viewDidLoad method.

Thomas Clayson
thanks it worked
mrugen
+2  A: 

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.

Sebastian Wramba
ya thanks it worked one more thing can i change color of keyboard.
mrugen
A: 

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

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

Nevin