Centering MKMapView on spot N-pixels below pin

前端 未结 8 1416
梦毁少年i
梦毁少年i 2020-11-30 02:34

Want to center MKMapView on a point N-pixels below a given pin (which may or may not be visible in the current MapRect).

I\'ve been trying

8条回答
  •  遥遥无期
    2020-11-30 02:58

    Look at this method on MKMapView:

    - (void)setCenterCoordinate:(CLLocationCoordinate2D)coordinate animated:(BOOL)animated
    

提交回复
热议问题