gpt4 book ai didi

swift - 填充 WKInterfaceTable

转载 作者:行者123 更新时间:2023-11-30 11:24:33 26 4
gpt4 key购买 nike

按照本教程... here

for (index, labelText) in stringData.enumerate() {
let row = myTable.rowControllerAtIndex(index)
as! MyRowController
row.myLabel.setText(labelText)

收到一条错误消息:

Value of type '[String]' has no member 'enumerate'

Swift 代码更新有变化吗?

最佳答案

这是一个非常古老的教程,您正在寻找的函数现在称为enumerated

for (index, labelText) in stringData.enumerated() {
...
}

关于swift - 填充 WKInterfaceTable,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50898382/

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