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

你好,下面方式, alert不能弹出,还会造成界面卡死 #23

Open
ziyouzhe4 opened this issue Aug 30, 2019 · 2 comments
Open

Comments

@ziyouzhe4
Copy link

SPAlertController *alertController = [SPAlertController alertControllerWithTitle:@"请选择变更的场景,变更后报警规则将重置" message:@"subtile" preferredStyle:SPAlertControllerStyleActionSheet animationType:SPAlertAnimationTypeFromBottom];

SPAlertAction *new = [SPAlertAction actionWithTitle:@"+ 新建场景" style:SPAlertActionStyleDestructive handler:^(SPAlertAction * _Nonnull action) {

    NSLog(@"点击了 新建场景");

}];

SPAlertAction *cancel = [SPAlertAction actionWithTitle:@"取消" style:SPAlertActionStyleCancel handler:^(SPAlertAction * _Nonnull action) {

    NSLog(@"点击了Cancel");

}];

[alertController addAction:new];
[alertController addAction:cancel];

[alertController setBackgroundViewAppearanceStyle:appearanceStyle alpha:0.5];
@SPStore
Copy link
Owner

SPStore commented Aug 30, 2019 via email

@ZRD1112
Copy link

ZRD1112 commented Feb 8, 2021

我也遇到了类似的问题。 在handler里 跳转页面,页面跳转过去了,但是UI有部分没刷新

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

3 participants