【发布时间】:2026-01-26 22:00:01
【问题描述】:
是否可以同时打开多个标注?
代码:
- (void)mapViewDidFinishLoadingMap:(MKMapView *)theMapView {
for (id<MKAnnotation> currentAnnotation in theMapView.annotations) {
[theMapView selectAnnotation:currentAnnotation animated:YES];
}
}
只打开一个标注。
【问题讨论】:
-
为什么超过 1 个?屏幕尺寸不够大,这让用户感到困惑。
-
没错,但如果地图上只有两三个大头针且它们之间的距离足够大,用户就不会感到困惑。而且,是的,这是我客户的要求。
标签: iphone mkmapview mkannotation