回答編集履歴

1

2つ追記。

2018/08/16 00:42

投稿

fuzzball
fuzzball

スコア16731

test CHANGED
@@ -1,3 +1,7 @@
1
+ # locationManager(_:didUpdateLocations:)
2
+
3
+
4
+
1
5
  ```swift
2
6
 
3
7
  func locationManager(_ manager: CLLocationManager, didUpdatelocations locations: [CLLocation])
@@ -13,3 +17,29 @@
13
17
 
14
18
 
15
19
  を`searchBarSearchButtonClicked(_:)`の外に出して下さい。
20
+
21
+
22
+
23
+ # L
24
+
25
+
26
+
27
+ `didUpdatelocations`ではなく`didUpdateLocations`です。
28
+
29
+
30
+
31
+ # Info.plist
32
+
33
+
34
+
35
+ ```swift
36
+
37
+ manager.requestWhenInUseAuthorization()
38
+
39
+ ```
40
+
41
+
42
+
43
+ ならば、Info.plistに書くのは`NSLocationWhenInUseUsageDescription`です。
44
+
45
+ > Privacy - Location When In Use Usage Description`