【发布时间】:2017-03-22 18:10:47
【问题描述】:
我正在尝试在物理设备 (iPhone 6+) 上运行我的应用程序,但我不断收到此错误消息。 下标使用不明确。在模拟器上运行应用程序时一切正常,我想知道这是否是与使用物理设备相对应的问题。
//Making array to sort through the index of the specific field
if let array = allUsers["user_info"] {
for index in 0...array.count-1 {
let aObject = array[index] as! [String : AnyObject]
let Emails = aObject["email"] as! String
let Passwords = aObject["password"] as! String
user_info[Emails] = Passwords as AnyObject?
}
}
我收到以下行的错误:let aObject = array[index] as! [字符串:AnyObject]
【问题讨论】:
标签: ios xcode swift3 ios-simulator ambiguous