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

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

Open
a13377766460 opened this issue May 31, 2019 · 6 comments

Comments

@a13377766460
Copy link

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

@SPStore
Copy link
Owner

SPStore commented Jun 3, 2019 via email

@a13377766460
Copy link
Author

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

  • (void)tapOverlayView {

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

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

}

@SPStore
Copy link
Owner

SPStore commented Jun 4, 2019 via email

@a13377766460
Copy link
Author

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

@a13377766460
Copy link
Author

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

@SPStore
Copy link
Owner

SPStore commented Jun 4, 2019 via email

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

2 participants