开发者

How to switch to another view on click of annotation pin in MKMapView in iPhone SDK?

开发者 https://www.devze.com 2023-01-30 02:39 出处:网络
I am making an iPhone app where in there is a requirement of a 开发者_开发技巧map. I am using MKMapView for that. I have placed an annotation at a particular point.

I am making an iPhone app where in there is a requirement of a 开发者_开发技巧map.

I am using MKMapView for that. I have placed an annotation at a particular point.

I want that when I click that annotation pin then it should take me to another view controller.

How can I do this? I am new in this MKMapView.


If you want to go to another viewcontroller by clicking the pin directly. There is this delegate of MapView

- (void)mapView:(MKMapView *)mapView didSelectAnnotationView:(MKAnnotationView *)view
  {
     // Here push your view controller
  }
0

精彩评论

暂无评论...
验证码 换一张
取 消