UIAlertView with textfield and three buttons issue in ios 6
问题 UIAlertView* alert = [[UIAlertView alloc] initWithTitle:@"Enter Student Name" message:nil delegate:self cancelButtonTitle:@"Cancel" otherButtonTitles:@"Save", @"Save and Add", nil]; alert.tag = 1; alert.transform=CGAffineTransformMakeScale(1.0, 0.75); alert.alertViewStyle=UIAlertViewStylePlainTextInput; [alert show]; -(void)willPresentAlertView:(UIAlertView *)alertView { if (alertView.tag == 1) { for (UIView *view in alertView.subviews) { if ([view isKindOfClass:[UITextField class]]|| [view