Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在制作一个需要地图的 iPhone 应用程序。
我为此使用 MKMapView。我在特定点放置了注释。
我希望当我单击该注释引脚时,它应该将我带到另一个视图控制器。
我怎样才能做到这一点?我是这个 MKMapView 的新手。
如果您想通过直接单击图钉转到另一个视图控制器。MapView 有这个代表
- (void)mapView:(MKMapView *)mapView didSelectAnnotationView:(MKAnnotationView *)view { // Here push your view controller }