【发布时间】:2016-08-19 03:09:47
【问题描述】:
然后我想删除"codigo" 键值。这是我的 if 语句:
let profile = FIRDatabase.database().reference().child("barcodes")
profile.observeEventType(.Value, withBlock: { (snapshot) -> Void in
for item in snapshot.children {
if item.value["codigo"]as! String == barcodes[indexPath.row].code{
print("HERE")
item.removeValue!()
}
}
但它在item.removeValue() 崩溃。
【问题讨论】:
标签: swift firebase-realtime-database