ios - 类型 'UIbutton' 的值不再有 'titleforState'

标签 ios swift

<分区>

这是一个错误,当我只是想输入一个简单的命令时,我很快就遇到了一个错误。

example image

最佳答案

语法已经改变:

button.title(for: .normal)

关于ios - 类型 'UIbutton' 的值不再有 'titleforState',我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43755328/

相关文章:

ios - NSLog 默认断行

ios - mkannotation 中的自定义数据变量

当应用程序关闭时,Swift 3 显示来自 appdelget 的 View

ios - 类型 string 不符合 coredata 的协议(protocol)序列类型

swift - 使用从另一个协议(protocol)继承或使用 where Self 声明 swift 协议(protocol)时的区别

ios - 带有 CocoaPods v0.38 的 ADAL iOS 使用 Swift 没有桥接头

ios - 为 iOS 7 创建一个文本编辑器

ios - UITableViewController 中的第二个 TableView

ios - 有没有更简洁的方法来编辑 UIView 框架的 4 个 CGRect 值中的 1 个?

swift - 在 Firebase 中删除项目