質問編集履歴
4
見やすく修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -50,10 +50,6 @@
|
|
50
50
|
|
51
51
|
self.posts.append(post)
|
52
52
|
|
53
|
-
self.activityIndicatorView.stopAnimating()
|
54
|
-
|
55
|
-
self.tableView.reloadData()
|
56
|
-
|
57
53
|
})
|
58
54
|
|
59
55
|
}
|
3
文字を見やすく変更
test
CHANGED
File without changes
|
test
CHANGED
@@ -64,7 +64,7 @@
|
|
64
64
|
|
65
65
|
```
|
66
66
|
|
67
|
-
おそらくなのですが、わからない部分①のnewPostの値がわからない部分②のpostに入っていると思います。
|
67
|
+
おそらくなのですが、**わからない部分①**のnewPostの値が**わからない部分②**のpostに入っていると思います。
|
68
68
|
|
69
69
|
|
70
70
|
|
2
タイトルの変更
test
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
swiftのクロージャの値の受け渡しが理解できない(Firebase使用)
|
test
CHANGED
File without changes
|
1
タイトルの変更
test
CHANGED
@@ -1 +1 @@
|
|
1
|
-
Firebaseを使うときのswiftのクロージャ
|
1
|
+
Firebaseを使うときのswiftのクロージャの値の受け渡しが理解できない
|
test
CHANGED
@@ -18,7 +18,7 @@
|
|
18
18
|
|
19
19
|
let newPost = Post.transformPostPhoto(dict: dict, key: snapshot.key)
|
20
20
|
|
21
|
-
completion(newPost)⇦わからない部分①
|
21
|
+
completion(newPost)⇦ わからない部分①
|
22
22
|
|
23
23
|
}
|
24
24
|
|
@@ -44,7 +44,7 @@
|
|
44
44
|
|
45
45
|
func loadPosts() {
|
46
46
|
|
47
|
-
Api.Post.observePosts { (post) in ⇦わからない部分②
|
47
|
+
Api.Post.observePosts { (post) in ⇦ わからない部分②
|
48
48
|
|
49
49
|
self.fetchUser(uid: post.uid!, completed: {
|
50
50
|
|