Ben*_*ris 12 iphone sdk objective-c uitextfield
出于某种原因,我的UITextFields都不会自动进行资本化.我已经在InterfaceBuilder中设置了属性以及编程,如下所示.
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];
Run Code Online (Sandbox Code Playgroud)
无论如何我可以设置一些标志,在整个应用程序中禁用自动资本化而没有意识到它?
谢谢
mat*_*ght 26
您检查了iPhone的设置 - >常规 - >键盘 - >自动大写吗?
| 归档时间: |
|
| 查看次数: |
5838 次 |
| 最近记录: |