firebase structure신속 중포 기지 중첩 된 아이들은 내가 모든 그룹에서 특정 사용자 (currentUserId)을 삭제해야 볼 수있는 중포 기지 구조에서
를 삭제 사전을
###########################UPDATED###################################
let groupsRef = self.root.child("groups")
groupsRef.observeSingleEvent(of: .value, with: { snapshot in
for groupChild in snapshot.children {
let groupSnap = groupChild as! DataSnapshot
var dict = groupSnap.value as! [String: Any]
let uid = dict["utenti"] as! [String: Bool]
for each in uid {
if each.key == self.currentUserID{
print(each.key)
//i now need a way to remove this key:value
}
}
}
})
나는 그래서 내가 DIT의 모든 키를 추출에 더 갈 수 새로운 아니에요 해요 cionary, 나는 내가 삭제해야하는 것과 비교할 것이고, 같은 것이면 나는 삭제할 것입니다. 누군가 도움을 줄 수 있습니까?
작동합니다 !! thnx 그래서 mutch! – Marco