UITextField
A UITextField represents a rectangular area where the user can enter text. When a user taps the UITextField, the keyboard will automatically pop up.
Example
UITextField *myTextField =
How do I dismiss the keyboard?
1) Add <UITextFieldDelegate> to your interface
2) Write the method
-(BOOL) textFieldShouldReturn:(UITextField *) text
{
[text resignFirstResponder];
return YES;
}
3) Add myTextField.delegate = self;
How do I change the type of keyboard?
refvar.keyboardType = UIKeyboardTypeNumberPad;