質問編集履歴
3
修正依頼からの修正
title
CHANGED
File without changes
|
body
CHANGED
@@ -14,6 +14,7 @@
|
|
14
14
|
以下、CoreLocationで使用しているコードです。
|
15
15
|
|
16
16
|
```
|
17
|
+
import UIKit
|
17
18
|
import CoreLocation
|
18
19
|
|
19
20
|
class MainViewController: UIViewController, CLLocationManagerDelegate {
|
@@ -49,8 +50,8 @@
|
|
49
50
|
|
50
51
|
func locationManager(_ manager: CLLocationManager, didUpdateLocations locations: [CLLocation]) {
|
51
52
|
let location:CLLocationCoordinate2D = manager.location!.coordinate
|
52
|
-
bluetoothService.lat = location.latitude
|
53
|
+
// bluetoothService.lat = location.latitude
|
53
|
-
bluetoothService.lng = location.longitude
|
54
|
+
// bluetoothService.lng = location.longitude
|
54
55
|
}
|
55
56
|
}
|
56
57
|
```
|
2
修正依頼からの書き足し
title
CHANGED
File without changes
|
body
CHANGED
@@ -17,6 +17,8 @@
|
|
17
17
|
import CoreLocation
|
18
18
|
|
19
19
|
class MainViewController: UIViewController, CLLocationManagerDelegate {
|
20
|
+
|
21
|
+
var locationManager: CLLocationManager?
|
20
22
|
|
21
23
|
override func viewDidLoad() {
|
22
24
|
super.viewDidLoad()
|
@@ -64,5 +66,6 @@
|
|
64
66
|
参考にした記事
|
65
67
|
いろんな記事をみていたのでこれらだけではありませんが..
|
66
68
|
パッと出てきたのがこれらだったので。。
|
69
|
+
|
67
70
|
[【CoreLocation】位置情報を取得する](https://qiita.com/chino_tweet/items/db3a536234a43a3c31d9)
|
68
71
|
[CLLocationManagerの用例](https://qiita.com/maebaru/items/040a5717380f6f985e9a)
|
1
追記
title
CHANGED
File without changes
|
body
CHANGED
@@ -57,4 +57,12 @@
|
|
57
57
|
Xcode 11.3.1
|
58
58
|
target iOS12.0
|
59
59
|
です。
|
60
|
-
なにとぞ、ご教授お願い申し上げます。
|
60
|
+
なにとぞ、ご教授お願い申し上げます。
|
61
|
+
|
62
|
+
***
|
63
|
+
**追記**
|
64
|
+
参考にした記事
|
65
|
+
いろんな記事をみていたのでこれらだけではありませんが..
|
66
|
+
パッと出てきたのがこれらだったので。。
|
67
|
+
[【CoreLocation】位置情報を取得する](https://qiita.com/chino_tweet/items/db3a536234a43a3c31d9)
|
68
|
+
[CLLocationManagerの用例](https://qiita.com/maebaru/items/040a5717380f6f985e9a)
|