質問編集履歴

1

情報修正

2020/02/03 12:50

投稿

globalplus
globalplus

スコア119

test CHANGED
File without changes
test CHANGED
@@ -30,4 +30,16 @@
30
30
 
31
31
  }
32
32
 
33
+ //追加項目
34
+
35
+ func updateCurrentPos(_ coordinate:CLLocationCoordinate2D) {
36
+
37
+ var region:MKCoordinateRegion = mapView.region
38
+
39
+ region.center = coordinate
40
+
41
+ mapView.setRegion(region,animated:true)
42
+
43
+ }
44
+
33
45
  ```