我对 MKMapView 有疑问。我添加这样的注释:
// set up new points
for(int i = 0; i < [_locations count]; i++) {
PPlace * place = [_locations objectAtIndex:i];
PlaceAnnotation * placeAnnotation = [[PlaceAnnotation alloc] initWithPlace:place];
// if annotation is for currently selected place
placeAnnotation.isCurrent = i == currentIndexPath.row;
[self.mapView addAnnotation:placeAnnotation];
if (placeAnnotation.isCurrent) {
[self.mapView selectAnnotation:placeAnnotation animated:YES];
}
[placeAnnotation release];
}
因此,我尝试在添加后立即显示标注 bouble,而不是在点击注释引脚后。在模拟器中一切正常,在 iOS 4.3.2 的 iPhone 3GS 上也是如此。但是,标注不会在装有 iOS 4.1 的 iPhone 4 上显示(它们仅在点击 pin 后才会显示)。知道如何解决这个问题吗?