开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜