標準位置情報サービス準備 Info.plistのRequired device capabilitiesにlocation-servicesとgps追加 Info.plistのInformation Property ListにNSLocationAlwaysUsageDescriptionを追加して、許可を求めるダイアログに表示する文字列を設定 Button * 2(開始・終了用)をストーリーボードに配置し、Outlet・Actionを作成してViewController.swiftに以下のコードを記述 import UIKit import CoreLocation class ViewController: UIViewController, CLLocationManagerDelegate { var myLocationManager: CLLocationManager! @