質問

MapKit奇妙な問題を持っているようだ!!!

私はいくつかの注釈を追加するいくつかのコードを持っているし、私は

を呼び出します
NSArray *existingpoints = mapView.annotations;
[mapView removeAnnotations:existingpoints];
                if ([mapView.annotations count] > 0) {
                    for(Plane *annotation in mapView.annotations){
                        NSLog(@"Name: %@",annotation.reg);
                        [mapView removeAnnotation:annotation];
                    }
                    NSLog(@"\nMapCount:%i after attempting manual remove",[mapView.annotations count]);
                }
今、奇妙なビットは、時間から、私はmapView.annotations中に入ることができる時間に0よりも大きいものを数えるので、それゆえ、私は余分な「保護」を持っているとしようとすると、手動でNSLoggedますよりも、項目を削除することです。

しかし、最終的なカウントはすべてのことの後、まだ1です!

ほとんどの奇妙な!

役に立ちましたか?

解決

持っているが、Appleとバグを記録し....

彼らは、これは4.2

の問題です認めます
ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top