質問編集履歴

1

(.childAdded, with: { (snapshot) in

2018/03/08 15:36

投稿

ishiishiyay
ishiishiyay

スコア33

test CHANGED
File without changes
test CHANGED
@@ -52,9 +52,9 @@
52
52
 
53
53
 
54
54
 
55
- Database.database().reference.child("Media_Messages").observe(.childAdded){
55
+ Database.database().reference.child("Media_Messages").observe(.childAdded, with:{
56
56
 
57
- (snapshot:DataSnapshot) in
57
+ (snapshot) in
58
58
 
59
59
 
60
60
 
@@ -124,7 +124,7 @@
124
124
 
125
125
  }
126
126
 
127
- }
127
+ } , withCancel:nil)
128
128
 
129
129
 
130
130