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上显示(仅在轻按图钉之后显示)。任何想法如何解决这个问题?
没有找到相关结果
已邀请:
4 个回复
坍锭嘉韭蓝
设置为
,除非您的标题中有内容,否则呼出气泡不会显示。
蹦吃舷弦
所以看起来像:
希望这可以帮助! WeSaM
辰炔诚薯
您可以在这里找到文档
嗓瑰
从该方法内部调用: