Below is the scenario.
I have created a UIAlertView in viewDidLoad of the Controller in which I display the Alert.
loginAlert = [[UIAlertView alloc] initWithTitle:@"Check" message:@"Ok" delegate:nil cancelButtonTitle:@"Ok" otherButtonTitles:nil, nil]; [loginAlert setAlertViewStyle:UIAlertViewStyleSecureTextInput];
I call it as [alert show] and it is displayed.
When user press Ok, it goes to textEndEditing delegate method and from if nil/worng value was entered, I call [alert show] again.
- (void)textFieldDidEndEditing:(UITextField *)textField { if ([textField.text length] > 0) { } else { NSLog(@"Checking"); [loginAlert show]; } }
But its not displayed again. Please tell me what to do?