9

我使用 aMKMapView总共显示大约 700 个注释。我的问题是有时我会得到一个像这样的巨大日志:

2013-06-05 17:32:12.395 tiet[1493:1c52b] Can't render polygon (can't reserve indicies: 324): featureID: 1547811419 key: 73.35.7 (512)
2013-06-05 17:32:12.396 tiet[1493:1c52b] Can't render polygon (can't reserve indicies: 480): featureID: 1547811419 key: 73.35.7 (512)
2013-06-05 17:32:12.396 tiet[1493:1c52b] Can't render polygon (can't reserve indicies: 30): featureID: 1547811419 key: 73.35.7 (512)
2013-06-05 17:32:12.396 tiet[1493:1c52b] Can't render polygon (can't reserve indicies: 18): featureID: 1547811419 key: 73.35.7 (512)
2013-06-05 17:32:12.396 tiet[1493:1c52b] Can't render polygon (can't reserve indicies: 18): featureID: 1547811419 key: 73.35.7 (512)
2013-06-05 17:32:12.397 tiet[1493:1c52b] Can't render polygon (can't reserve indicies: 1818): featureID: 1547811419 key: 73.35.7 (512)
2013-06-05 17:32:12.397 tiet[1493:1c52b] Can't render polygon (can't reserve indicies: 18): featureID: 1547811419 key: 73.35.7 (512)
2013-06-05 17:32:12.397 tiet[1493:1c52b] Can't render polygon (can't reserve indicies: 18): featureID: 1547811419 key: 73.35.7 (512)
2013-06-05 17:32:12.397 tiet[1493:1c52b] Can't render polygon (can't reserve indicies: 18): featureID: 1547811419 key: 73.35.7 (512)
2013-06-05 17:32:12.397 tiet[1493:1c52b] Can't render polygon (can't reserve indicies: 234): featureID: 1547811419 key: 73.35.7 (512)
2013-06-05 17:32:12.397 tiet[1493:1c52b] Can't render polygon (can't reserve indicies: 90): featureID: 1547811419 key: 73.35.7 (512)
2013-06-05 17:32:12.398 tiet[1493:1c52b] Can't render polygon (can't reserve indicies: 174): featureID: 1547811419 key: 73.35.7 (512)
2013-06-05 17:32:12.398 tiet[1493:1c52b] Can't render polygon (can't reserve indicies: 18): featureID: 1547811419 key: 73.35.7 (512)
2013-06-05 17:32:12.398 tiet[1493:1c52b] Can't render polygon (can't reserve indicies: 162): featureID: 1547811419 key: 73.35.7 (512)
2013-06-05 17:32:12.398 tiet[1493:1c52b] Can't render polygon (can't reserve indicies: 186): featureID: 1547811419 key: 73.35.7 (512)
2013-06-05 17:32:12.398 tiet[1493:1c52b] Can't render polygon (can't reserve indicies: 114): featureID: 1547811419 key: 73.35.7 (512)
2013-06-05 17:32:12.398 tiet[1493:1c52b] Can't render polygon (can't reserve indicies: 18): featureID: 1547811419 key: 73.35.7 (512)
2013-06-05 17:32:12.398 tiet[1493:1c52b] Can't render polygon (can't reserve indicies: 120): featureID: 1547811419 key: 73.35.7 (512)
2013-06-05 17:32:12.399 tiet[1493:1c52b] Can't render polygon (can't reserve indicies: 78): featureID: 1547811419 key: 73.35.7 (512)
2013-06-05 17:32:12.399 tiet[1493:1c52b] Can't render polygon (can't reserve indicies: 126): featureID: 1547811419 key: 73.35.7 (512)
2013-06-05 17:32:12.399 tiet[1493:1c52b] Can't render polygon (can't reserve indicies: 192): featureID: 1547811419 key: 73.35.7 (512)
2013-06-05 17:32:12.399 tiet[1493:1c52b] Can't render polygon (can't reserve indicies: 18): featureID: 1547811419 key: 73.35.7 (512)
2013-06-05 17:32:12.399 tiet[1493:1c52b] Can't render polygon (can't reserve indicies: 30): featureID: 1547811419 key: 73.35.7 (512)
2013-06-05 17:32:12.400 tiet[1493:1c52b] Can't render polygon (can't reserve indicies: 156): featureID: 1547811419 key: 73.35.7 (512)
2013-06-05 17:32:12.400 tiet[1493:1c52b] Can't render polygon (can't reserve indicies: 18): featureID: 1547811419 key: 73.35.7 (512)
2013-06-05 17:32:12.400 tiet[1493:1c52b] Can't render polygon (can't reserve indicies: 18): featureID: 1547811419 key: 73.35.7 (512)
2013-06-05 17:32:12.400 tiet[1493:1c52b] Can't render polygon (can't reserve indicies: 84): featureID: 1547811419 key: 73.35.7 (512)
2013-06-05 17:32:12.400 tiet[1493:1c52b] Can't render polygon (can't reserve indicies: 30): featureID: 1547811419 key: 73.35.7 (512)

我一直无法找到有关该错误的任何信息,并且完全感到困惑。我看不到真正的视觉差异,也没有其他错误。有人知道这是怎么回事吗?

4

1 回答 1

3
I also had the same problem once in iOS6.1.
I was zooming out the map based on a coordinate which was (0.00000,0.00000).
In my code:-
CLLocationCoordinate2D theCoordinate ;
    theCoordinate.latitude = [[self.dicOfMAP objectForKey:@"latitude"] doubleValue];
    theCoordinate.longitude = [[self.dicOfMAP objectForKey:@"longitude"] doubleValue];

    self.pointAnnotation.coordinate = theCoordinate;

the value of theCoordinate was(0.0,0.0).
So check the value of coordinate.
于 2014-09-15T06:48:04.503 回答