gpt4 book ai didi

swift - 为什么我无法获取 NSArray 的值?它总是返回零值。Swift 4.3

转载 作者:行者123 更新时间:2023-11-28 13:40:27 25 4
gpt4 key购买 nike

<分区>

我想获取 NSArray 的值,但它总是给我 nil 值,有人知道如何解决吗?

它由 swift 4.2 创建


KCNetWorkTool.tool.getRecordListWith(UserID: userID, Date: dateLabel.text!) { (result) in

SVProgressHUD.dismiss()
if let dict = result.data as NSDictionary? {
// the value of this below line, i cann't get . array always return nil
if let array = (dict["list"] as? NSMutableArray) {
let countArray = array.count
for index in 0..<countArray {
if let dictNew = array[index] as? NSDictionary {
let row = EnvelopeModel(dictionary: dictNew)
self.recordModel.append(row)
}
}
}
}
self.recordTable.reloadData()
}
}

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