【发布时间】:2016-01-19 18:43:23
【问题描述】:
我正在尝试向我的地图添加多个注释,但手表只显示一个。这就是我正在做的。
for (RestaurantObject *restaurant in nearbyMapArray) {
CLLocationCoordinate2D mapLocation = CLLocationCoordinate2DMake([restaurant.latitude doubleValue], [restaurant.longitude doubleValue]);
[self.map addAnnotation:mapLocation withPinColor: WKInterfaceMapPinColorRed];
MKCoordinateSpan coordinateSpan = MKCoordinateSpanMake(0.1, 0.1);
[self.map setRegion:(MKCoordinateRegionMake(mapLocation, coordinateSpan))];
}
【问题讨论】:
标签: ios annotations watchkit