UIAlertViewStyleLoginAndPasswordInput与更多的TextFields?
它可能添加更多的TextFields到UIAlertViewStyleLoginAndPasswordInput?
我怎么办?
或者还有其他的可能性?
是的,这是可能的,你可以这样做
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];
希望这可以帮助。