質問編集履歴
1
情報修正
title
CHANGED
File without changes
|
body
CHANGED
@@ -30,9 +30,9 @@
|
|
30
30
|
ref.child("users").setValue(["userCoordinate": userCoordinate])
|
31
31
|
print("位置情報を保存しました")
|
32
32
|
}
|
33
|
-
//Thread 1: Fatal error: Unexpectedly found nil while unwrapping an Optional valueのエラー
|
34
33
|
@IBAction func othersLocation(_ sender: Any)
|
35
34
|
{
|
35
|
+
//Thread 1: Fatal error: Unexpectedly found nil while unwrapping an Optional valueのエラー
|
36
36
|
ref.child("userLatitude").child(user!).observeSingleEvent(of: .value, with: { (snapshot) in
|
37
37
|
let value = snapshot.value as? NSDictionary
|
38
38
|
let otherUserLatitude = value?["userLatitude"] as? String
|