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.
所以,我有一张上面有很多注释的地图,每个图钉都有自己的协调和名称和描述,但是一旦用户点击图钉,我不想显示它。单击后如何获取选定的图钉及其数据(名称、协调和描述)?
实现 mkmapviewdelegate
- (void)mapView:(MKMapView *)mapView didSelectAnnotationView:(MKAnnotationView *)view