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
}
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.