Swiftでジオフェンシングのアプリ作成するときのメモ。
各情報はググればでてきますが、ひとつひとつ散らばっていて探すのが面倒かと思います。メモ程度にまとめますので、CoreLocation, MKMapView, Geofencingなどでお悩みの方のお役にたてば幸いです。
ちなみに、私は、複数地点が同時に観測さてしまう現象で結構悩みました。。。
とりあえず地図表示
[iPhone] MapView で地図を表示する (Swift)
現在地を中心にする
MKMapViewの初期中心点をユーザの現在地に設定する方法
座標を決めてピン立てる
緯度経度を10進法で求める
ピンの画像を変える
Swift different images for Annotation
calloutに画像追加する
Stuck on using MKPinAnnotationView() within Swift and MapKit
コールアウトにボタン追加する
ボタン押したら文字列を表示
Swift Annotation CallOut Button selection
currentLocationのcalloutをオフに
How to suppress the “Current Location” callout in map view
ピンの周辺に円を描く
iOS 8 の Location Notification を使って目的地に着いたら教えてくれるアプリ作ったった
トラッキングをアップル純正アプリに合わせる
MKMapView のユーザートラッキングモードを標準マップアプリと同等に実装する
領域観測(Geofence)
iOS7 で 位置情報サービス と マップ を使う! 〜 LocationManager と MapView 〜
Core Location Tutorial: Geofencing
複数の領域が一度に同時に観測されて困る!
Region Monitoring Glitch on iOS 7 – Multiple Notifications at the same time
LocalNotificationで通知だす
[iOS 8] Location Notification を使って領域観測で通知する
AppDelegate内でUIAlertControllerつかう
Apple Watch バックグラウンドLocal通知 UIAlertController 表示
Mapの矢印のアイコン出したい
Creating a left-arrow button (like UINavigationBar’s “back” style) on a UIToolbar
アプリ名変更
アップルのドキュメント
Location and Maps Programming Guide
以上。