Iterate over snapshot children in Firebase
问题 I have a Firebase resource that contains several objects and I would like to iterate over them using Swift. What I expected to work is the following (according to the Firebase documentation) https://www.firebase.com/docs/ios-api/Classes/FDataSnapshot.html#//api/name/children var ref = Firebase(url:MY_FIREBASE_URL) ref.observeSingleEventOfType(.Value, withBlock: { snapshot in println(snapshot.childrenCount) // I got the expected number of items for rest in snapshot.children { //ERROR: