We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
i want to check textfield.text and if it's empty then don't dismiss the SCLAlertView. how can i check?
The text was updated successfully, but these errors were encountered:
SCLAlertView *alert = [[SCLAlertView alloc] init]; UITextField *evenField = [alert addTextField:@"Input field"]; [alert addButton:@"Test Validation" validationBlock:^BOOL{ if (evenField.text.length == 0) { [[[UIAlertView alloc] initWithTitle:@"Whoops!" message:@"Empty text field" delegate:nil cancelButtonTitle:@"OK" otherButtonTitles:nil] show]; return NO; } return YES; } actionBlock:^{ [[[UIAlertView alloc] initWithTitle:@"Great Job!" message:@"Thanks" delegate:nil cancelButtonTitle:@"OK" otherButtonTitles:nil] show]; }]; [alert showEdit:self title:@"Validation" subTitle:@"Ensure the data is correct" closeButtonTitle:nil duration:0];
Sorry, something went wrong.
perfect..! Thanks for your help 👍
No branches or pull requests
i want to check textfield.text and if it's empty then don't dismiss the SCLAlertView. how can i check?
The text was updated successfully, but these errors were encountered: