简体   繁体   English

showCallout无需点击-iOS

[英]showCallout without tapping -iOS

I have several annotation pins on the map. 我在地图上有几个注释图钉。 I would like to show info on the one of the default pin by triggered showCallout I know how to implement by tapped, but I dont know without tapping on the annotation, how could it show showCallout? 我想通过触发的showCallout在默认引脚之一上显示信息,我知道如何通过点击来实现,但是我不知道不点击注释,它将如何显示showCallout? Thanks in advance 提前致谢

Have you tried this: 您是否尝试过:

id<MKAnnotation> myPin = [mapView.annotations objectAtIndex:0];
[mapView selectAnnotation:myPin animated:YES];

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM