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
It would be useful to have to ability to add a tickbox to the alertview allowing the user to select "don't show this again". Ideally with blocks:
//Using Blocks With Validation [alert addTickbox:@"Don't show again" validationBlock:^BOOL { BOOL tickboxValue = .... return tickboxValue;
} actionBlock:^{ // handle successful validation here }];
The text was updated successfully, but these errors were encountered:
+1
Sorry, something went wrong.
Please test the develop branch
SCLAlertView *alert = [[SCLAlertView alloc] init]; SCLSwitchView *switchView = [alert addSwitchViewWithLabel:@"Don't show again".uppercaseString]; switchView.tintColor = [UIColor brownColor]; [alert addButton:@"Done" actionBlock:^(void) { NSLog(@"Show again? %@", switchView.isSelected ? @"-No": @"-Yes"); }]; [alert showCustom:self image:[UIImage imageNamed:@"switch"] color:[UIColor brownColor] title:kInfoTitle subTitle:kSubtitle closeButtonTitle:nil duration:0.0f];
Works great. Thx. From a UXD standpoint though, it might be better to place the switchView below the buttons.
No branches or pull requests
It would be useful to have to ability to add a tickbox to the alertview allowing the user to select "don't show this again". Ideally with blocks:
//Using Blocks With Validation
[alert addTickbox:@"Don't show again" validationBlock:^BOOL {
BOOL tickboxValue = ....
return tickboxValue;
} actionBlock:^{
// handle successful validation here
}];
The text was updated successfully, but these errors were encountered: