Skip to content
New issue

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

不设置title和message AlertAction 回调无效 #18

Open
xhjss opened this issue Jul 29, 2019 · 0 comments
Open

不设置title和message AlertAction 回调无效 #18

xhjss opened this issue Jul 29, 2019 · 0 comments

Comments

@xhjss
Copy link

xhjss commented Jul 29, 2019

SPAlertController *alertController = [SPAlertController alertControllerWithTitle:nil
message:nil
preferredStyle:SPAlertControllerStyleActionSheet];
SPAlertAction *contact = [SPAlertAction actionWithTitle:ASLocalized(@"解除绑定")
style:SPAlertActionStyleDefault
handler:^(SPAlertAction * _Nonnull action) {

                                 NSLog(@"无效");           
}];
SPAlertAction *cacel = [SPAlertAction actionWithTitle:ASLocalized(@"取消") style:SPAlertActionStyleDefault handler:nil];
[alertController addAction:contact];
[alertController addAction:cacel];
// 设置对话框不需要毛玻璃
alertController.needDialogBlur = NO;
[self presentViewController:alertController animated:YES completion:nil];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant