アプリなどを開発するブログ

React Native / Swift / Ruby on Railsなどの学習メモ。


Google Maps SDK for iOS で地図の中心の座標を取得する

projectionメソッドを使うことで、CGPointをcoordinateに変換することができる。

CGPoint point = mapView.center;
CLLocationCoordinate2D coor = [mapView.projection coordinateForPoint:point];