gpt4 book ai didi

objective-c - SCLAlertView 未显示

转载 作者:行者123 更新时间:2023-11-30 12:44:05 25 4
gpt4 key购买 nike

我在 objective-c 中实现了 SCLAlertView。现在我们将项目移植到swift。我已在桥接头文件中添加了 SCLAlertView.h。没有问题。

我编写的代码没有任何错误,但在执行代码时没有显示警报。

let alert = SCLAlertView()

alert.showError("Title", subTitle: "This is a message", closeButtonTitle: "OK", duration: 0.1)

最佳答案

替换这个

alert.showError("Title", subTitle: "This is a message", closeButtonTitle: "OK", duration: 0.1)

alert.showSuccess(self, title: "Title", subTitle:"This is a message", closeButtonTitle: "OK", duration: 0.1)

关于objective-c - SCLAlertView 未显示,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41870182/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com