[英]What exactly is this grey colored popup called in MapKit & what method gets called when tapped?
好的,我有带有定位销的mapview,这里显示了5个:
但是,当您点击名为的别针时,会显示什么灰色弹出窗口?
当您点击图钉时,包含或获取要在该灰色标注上显示的图钉数据的哪种方法会被调用?
它们被称为标注,并且- (MKAnnotationView *)mapView:(MKMapView *)mapView viewForAnnotation:(id <MKAnnotation>)annotation
会调用- (MKAnnotationView *)mapView:(MKMapView *)mapView viewForAnnotation:(id <MKAnnotation>)annotation
。 要了解如何使用它们,我建议使用本教程: http : //www.raywenderlich.com/21365/introduction-to-mapkit-in-ios-6-tutorial
这是一个私有类,如上所述,它称为注释标注。 请查看https://github.com/nfarina/calloutview以获得它的开放源代码副本,以及http://www.mapbox.com/mapbox-ios-sdk/获得可以本地使用它的MapKit的开放源代码副本。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.