我正在尝试将一个孩子的所有值检索到 collectionView
我不断收到此错误
无法在此行中转换类型为“__NSDictionaryM”的值
let follower = snapshotValue!["Followers"] as! String
这是我的代码
followRef.child("users").child((FIRAuth.auth()?.currentUser?.displayName)!).observe(FIRDataEventType.value, with: {
snapshot in
let snapshotValue = snapshot.value as? Dictionary<String,AnyObject>
let follower = snapshotValue!["Followers"] as! String
self.postsFollow.insert(postFollowStruct(follower: follower) , at: 0)
self.followersView.reloadData()
})