相关疑难解决方法(0)

UIAlertView在Swift中不起作用

当我在swift中使用此代码时,我不知道为什么应用程序通过在"alertView.show()"部分中显示断点来终止,有人请帮助我.

var alertView = UIAlertView(
    title: "Hey",
    message: "Hello",
    delegate: self,
    cancelButtonTitle: "Cancel"
)
alertView.show()
Run Code Online (Sandbox Code Playgroud)

uialertview ios swift

3
推荐指数
1
解决办法
1万
查看次数

标签 统计

ios ×1

swift ×1

uialertview ×1