iphone mapkit drag and get center location

爷,独闯天下 提交于 2019-11-30 22:48:40

Look for theMapView.region.center or theMapView.centerCoordinate (should be the same) in your MapView's delegate -mapView:regionDidChangeAnimated: method.

Judging by this document:

http://developer.apple.com/iphone/library/DOCUMENTATION/MapKit/Reference/MKMapView_Class/MKMapView/MKMapView.html

You can get that with the centerPosition property of your MKMapView. To tell when the location changes, implement the -mapView:regionDidChangeAnimated: method in your MKMapViewDelegate.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!