にアクセスできません:は、次のように私が設定firebase構造を持っているFirebaseスナップデータ
各キーは、私はUICollectionViewを移入するために使用するデータが含まれています。しかし、私はFirebaseのデータにアクセスするのが難しいです。アンドロイドでは、私は
dataSnapshot.child("xxx").getValue()
と同様の方法を使用しかし、アクセスの種類は、iOSで利用可能であることが表示されません。私は型の値を示すエラーを受け付けております
self.dataSource = self.collectionView?.bind(to: self.ref.child("Polls")) { collectionView, indexPath, snap in
let cell = collectionView.dequeueReusableCell(withReuseIdentifier: reuseIdentifier, for: indexPath) as! PollCell
/* populate cell */
cell.pollQuestion.text = snap.child("question").getvalue
print(indexPath)
return cell
}
「FIRDataSnapshot」あなたは、Android上でこのラインを持っている場合は何のメンバーの子
フランク – tccpg288