Ios UIAlertViewStyleLogin和PasswordInput是否包含更多文本字段?

Ios UIAlertViewStyleLogin和PasswordInput是否包含更多文本字段?,ios,objective-c,cocoa-touch,ios5,uialertview,Ios,Objective C,Cocoa Touch,Ios5,Uialertview,是否可以向UIAlertViewStyleLogin和PasswordInput添加更多文本字段? 我该怎么办? 还是有其他可能性?是的,这是可能的,你可以这样做 UIAlertView *myAlertView = [[UIAlertView alloc] initWithTitle:@"Your title here!" message:@"this gets covered" delegate:self cancelButtonTitle:@"Cancel" otherButtonTit

是否可以向UIAlertViewStyleLogin和PasswordInput添加更多文本字段?
我该怎么办?

还是有其他可能性?

是的,这是可能的,你可以这样做

 UIAlertView *myAlertView = [[UIAlertView alloc] initWithTitle:@"Your title here!" message:@"this gets covered" delegate:self cancelButtonTitle:@"Cancel" otherButtonTitles:@"OK", nil];
UITextField *myTextField = [[UITextField alloc] initWithFrame:CGRectMake(12.0, 45.0, 260.0, 25.0)];
[myTextField setBackgroundColor:[UIColor whiteColor]];
[myAlertView addSubview:myTextField];
[myAlertView show];
[myAlertView release];

希望这能有所帮助。

FYI–正如我之前所说:修改UIAlertViews视图层次结构是被明确禁止的。现在这是不可能的。公平竞争(需要使用更多角色)