SPStore/SPAlertController

无法关闭点击背景退出对话框 设置tapBackgroundViewDismiss 无效

Opened this issue · 6 comments

/** 是否单击背景退出对话框,默认为YES */
@Property(nonatomic, assign) BOOL tapBackgroundViewDismiss;
这个属性根本没有用啊 设置了都是无效的 什么时候麻烦完善下

我已经自己修复了,在2170行代码处方法加了个判断

  • (void)tapOverlayView {

    SPAlertController *alertController = (SPAlertController *)self.presentedViewController;

    if (alertController.tapBackgroundViewDismiss) {//修复BUG
    [alertController dismissViewControllerAnimated:YES completion:^{}];
    }

}

没办法那时候,急修复我只好花时间研究下你的代码,我刚才看了和你修复的方式是一样的,哈哈

用着还不错比 2.x版本的时候好很多额