I have a question about iOS UIKeyboard
.
I have a UITextField
and I would to have the keyboard
with only uppercase characters.<
The simplest way would be to implement the editing changed method of the text field and set the textfield's text value to upper case representation of the entered text.
@property (nonatomic, strong) IBOutlet UITextField *yourTextfield
// add target in code or use interface builder
[self.yourTextField addTarget:self
action:@selector(uppercaseTextField)
forControlEvents:UIControlEventEditingChanged];
- (IBAction)uppercaseTextField:(UITextField*)textField
{
textField.text = [textField.text uppercaseString];
}