alert.addAction(UIAlertAction(title: "Ok", style: default, handler: nil)
我收到预期声明错误。
这段代码有什么问题?
最佳答案
试试这个:
alert.addAction(UIAlertAction(title: "Ok", style: .default, handler: nil))
关于swift - 预期声明 UIAlert View ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46542642/