views:

788

answers:

2

For some reason, none of my UITextFields will autocapitalize. I have set the property in InterfaceBuilder as well as programatically as shown below.

cell = [[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:@"search_cell"];
UITextField *tf = [[UITextField alloc] initWithFrame:CGRectMake(12, 10, 320, 32)];
tf.autocapitalizationType = UITextAutocapitalizationTypeWords;
tf.returnKeyType = UIReturnKeySearch;
tf.font = [UIFont boldSystemFontOfSize:20.0];
tf.delegate = self;
[cell addSubview:tf];
[tf becomeFirstResponder];

Is there anyway I could have set some flag that disables autocapitalization throughout the whole app without realizing it?

Thanks

+4  A: 

Did you check your iPhone's Settings -> General -> Keyboard -> Auto-capitalization?

mattwright
God, I feel like such an amateur. Thank you good sir.
Programasaurus
Glad I could help.
mattwright
A: 

How do you set the preferences for the iPhone Simulator?

Randy Kaempen