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

swift调用时,destructiveButtonIndexSet无效。 #28

Closed
seekcx opened this issue Nov 28, 2016 · 5 comments
Closed

swift调用时,destructiveButtonIndexSet无效。 #28

seekcx opened this issue Nov 28, 2016 · 5 comments

Comments

@seekcx
Copy link

seekcx commented Nov 28, 2016

           LCActionSheet(
                title: "取消关注后将不再得到关于此话题的更新信息",
                cancelButtonTitle: "取消",
                clicked: { actionSheet, index in
                    print(index)
                },
                otherButtonTitleArray: ["不再关注"]
            )
            .then {
                $0.destructiveButtonIndexSet = Set<Int>(arrayLiteral: 1)
                $0.blurEffectStyle = .light
            }
            .show()

这种方法并不能设置不再关注为红色。是我设置的方式有问题吗?

@iTofu
Copy link
Owner

iTofu commented Nov 28, 2016

我刚检查了下代码,这个应该是一个 Bug 而不是你的问题。目测可能是 OC 中的 NSSet -containsObject: 方法传 NSNumber 参数类型时,在 Swift 中由对应的 Set 类型调用时出现问题,我细致看一下,等下修复了会通知你。

@iTofu iTofu closed this as completed in 59c64d8 Nov 28, 2016
@iTofu
Copy link
Owner

iTofu commented Nov 28, 2016

已经修复了这个 Bug,你更新下试试。版本是 2.6.3。

统一配置的需求我这两天抽空实现。

@seekcx
Copy link
Author

seekcx commented Nov 28, 2016

@iTofu fix 速度非常赞!

但是目前pod上还是2.6.2

@seekcx
Copy link
Author

seekcx commented Nov 28, 2016

可能跟我使用的coding镜像有关,镜像同步有点延时。

@iTofu
Copy link
Owner

iTofu commented Nov 28, 2016 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