我添加多個批註程序是這樣的:MKAnnotation顯示所有引腳標題不點擊
- (void)addAnnotations{
NSInteger i;
CLLocationCoordinate2D location;
for (i = 0 ; i < [storeLatitude count] ; i ++){
location.latitude = [[storeLatitude objectAtIndex:i] floatValue];
location.longitude = [[storeLongitude objectAtIndex:i] floatValue];
MapViewAnnotation *newAnnotation = [[MapViewAnnotation alloc] initWithTitle:[listOfStores objectAtIndex:i] andCoordinate:location];
[self.mapView addAnnotation:newAnnotation];
[newAnnotation release];
}
}
是否有可能顯示標題爲所有引腳沒有點擊它們?
鏈接中的答案是死 - *對不起,該頁面無法找到* – Pang 2017-09-25 05:55:27