iphone-MKMapView标注在iOS 4.1的iPhone 4上不显示

问题描述

| 我对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];
}
因此,我尝试在添加标注后立即显示标注,而不是在点击注释图钉之后显示。 在模拟器中,一切正常,在带有iOS 4.3.2的iPhone 3GS上也是如此。但是,标注不会在带有iOS 4.1的iPhone 4上显示(仅在轻按图钉之后显示)。任何想法如何解决这个问题?     

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)