SPStore/SPAlertController

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

Opened this issue · 2 comments

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];

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