我需要帮助来获得func loadInfoOnce() {
ref = Database.database().reference()
ref.child("location").observeSingleEvent(of: .value) { (snapshot) in
// will iterate through each child of "location" branch
if let locationIds = snapshot.children.allObjects as? [DataSnapshot] {
for locationId in locationIds {
let dict = locationId.value as? [String: AnyObject]
let titleT = dict["Title"] as? String
print(titleT) // will return "Title" value for each location id
}
}
}
}
的正确图作为tau
(转换)的函数。
这是我的代码:
c
我的情节不正确。
如何修改方程式以得到以下图?