SPAlertController icon indicating copy to clipboard operation
SPAlertController copied to clipboard

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

Open a13377766460 opened this issue 6 years ago • 6 comments

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

a13377766460 avatar May 31 '19 20:05 a13377766460

问题已修复,请升级到3.0.4版本,谢谢。

乐升平 许思必客行 中华人民共和国

手机:13879857085 邮箱:[email protected]

电话:000-00000000 地址:上海市浦东新区居里路99号

在2019年06月1日 04:23,a13377766460[email protected] 写道:

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

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.

SPStore avatar Jun 03 '19 02:06 SPStore

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

  • (void)tapOverlayView {

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

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

}

a13377766460 avatar Jun 04 '19 14:06 a13377766460

666

| | 乐升平 | | 邮箱:[email protected] |

签名由 网易邮箱大师 定制

在2019年06月04日 22:19,a13377766460 写道:

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

(void)tapOverlayView {

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

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

}

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread.

SPStore avatar Jun 04 '19 14:06 SPStore

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

a13377766460 avatar Jun 04 '19 14:06 a13377766460

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

a13377766460 avatar Jun 04 '19 14:06 a13377766460

是的,花了我巨大的功夫,主要就是一个类代码行数太多,本来也想抽成好几个类,但是不想别人用起来太麻烦,一样对外简单一些,对内复杂点没事。感谢你的使用。

| | 乐升平 | | 邮箱:[email protected] |

签名由 网易邮箱大师 定制

在2019年06月04日 22:24,a13377766460 写道:

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

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread.

SPStore avatar Jun 04 '19 14:06 SPStore