如何在UIAlertView的UITextField上设置自动资产?

12 iphone cocoa-touch objective-c uitextfield uialertview

有没有办法在新UIAlertView文本输入上设置自动出资选项?
我想以大写字母开头:

    UIAlertView *alert = [[UIAlertView alloc]initWithTitle:@"Add Name" message:@"Enter name for routine" delegate:self cancelButtonTitle:@"Cancel" otherButtonTitles:@"Add", nil];
    [alert setAlertViewStyle:UIAlertViewStylePlainTextInput];
    [alert show];
Run Code Online (Sandbox Code Playgroud)

rob*_*off 40

UIAlertView *alert = [[UIAlertView alloc]initWithTitle:@"Add Name" message:@"Enter name for routine" delegate:self cancelButtonTitle:@"Cancel" otherButtonTitles:@"Add", nil];
[alert setAlertViewStyle:UIAlertViewStylePlainTextInput];
[alert textFieldAtIndex:0].autocapitalizationType = UITextAutocapitalizationTypeSentences;
[alert show];
Run Code Online (Sandbox Code Playgroud)