質問編集履歴
3
Dateの順番についての情報を追加
title
CHANGED
File without changes
|
body
CHANGED
@@ -17,7 +17,9 @@
|
|
17
17
|
```
|
18
18
|
|
19
19
|
のようにソートしているが、反映されない。Snapshotはクロージャであるので、表記の位置をいろいろ試したが、うまくいかなかった。
|
20
|
+
画面遷移の際にprint("message.sentDate(message.sentDate)")は行われているが、時系列順になっていない。
|
20
21
|
|
22
|
+
|
21
23
|
```
|
22
24
|
func fetchMessage() {
|
23
25
|
postRef.document(password).collection("messages").addSnapshotListener{ (snapshots, err) in
|
2
ソースを追加
title
CHANGED
File without changes
|
body
CHANGED
@@ -18,7 +18,7 @@
|
|
18
18
|
|
19
19
|
のようにソートしているが、反映されない。Snapshotはクロージャであるので、表記の位置をいろいろ試したが、うまくいかなかった。
|
20
20
|
|
21
|
-
|
21
|
+
```
|
22
22
|
func fetchMessage() {
|
23
23
|
postRef.document(password).collection("messages").addSnapshotListener{ (snapshots, err) in
|
24
24
|
|
@@ -53,4 +53,6 @@
|
|
53
53
|
return m1.sentDate < m2.sentDate
|
54
54
|
})
|
55
55
|
}
|
56
|
-
```
|
56
|
+
```
|
57
|
+
|
58
|
+
よろしくお願いします
|
1
print("message.sentDate\(message.sentDate)")は遷移の際に行われていない
title
CHANGED
File without changes
|
body
CHANGED
@@ -18,16 +18,7 @@
|
|
18
18
|
|
19
19
|
のようにソートしているが、反映されない。Snapshotはクロージャであるので、表記の位置をいろいろ試したが、うまくいかなかった。
|
20
20
|
|
21
|
-
```
|
22
|
-
message.sentDate2020-06-24 01:31:39 +0000
|
23
|
-
message.sentDate2020-06-24 01:31:44 +0000
|
24
|
-
message.sentDate2020-06-24 01:31:51 +0000
|
25
|
-
message.sentDate2020-06-24 01:31:53 +0000
|
26
|
-
message.sentDate2020-06-24 01:31:55 +0000
|
27
|
-
```
|
28
21
|
|
29
|
-
のようにDateは表示されている。
|
30
|
-
```
|
31
22
|
func fetchMessage() {
|
32
23
|
postRef.document(password).collection("messages").addSnapshotListener{ (snapshots, err) in
|
33
24
|
|