MapView üzerinde GPS göstergesinin yerini güncellemek için ...
[mapView removeAnnotation:myGpsAnnotation];
[myGpsAnnotation release];
myGpsAnnotation = nil;
myGpsAnnotation = [[MapLocationAnnotation alloc] initWithCoordinate:region.center annotationType:MapAnnotationTypeGps title:MAP_ANNOTATION_TYPE_GPS];
[mapView addAnnotation:myGpsAnnotation];
... Ben net bellek yavaş yavaş Aletleri (simülatör) tırmanış görüyoruz. Bu kod dışarı yorum sürece hiçbir Kaçak bip ama net Bayt ve # Net yavaş yavaş ... artan. Bu yüzden bu kusurlu kodudur% 100 eminim.
AMA ben Aşağıdakileri yaparsanız ...
[mapView removeAnnotation:myGpsAnnotation];
[myGpsAnnotation release];
myGpsAnnotation = nil;
myGpsAnnotation = [[MapLocationAnnotation alloc] initWithCoordinate:region.center annotationType:MapAnnotationTypeGps title:MAP_ANNOTATION_TYPE_GPS];
[mapView addAnnotation:myGpsAnnotation];
[mapView removeAnnotation:myGpsAnnotation];
[mapView addAnnotation:myGpsAnnotation];
[mapView removeAnnotation:myGpsAnnotation];
[mapView addAnnotation:myGpsAnnotation];
... sonra Net Bayt ve # Net çok daha hızlı artar. Bu benim hatam değil ve ben MapKit bir sızıntı izini çalışıyorum mümkün mü? Gerçekten bellek sızıntısı muyum? Yine, hiçbir şey Sızıntı altında görünür, ancak net değerleri sürekli tırmanma nedenlerine sonra görmüyorum.
Herhangi bir yardım için teşekkürler, -Gord













