Я использую mapview. когда i zoomin на карте показывает, что он получил предупреждение о памяти и сбой приложения в устройствах iOS 6. Но его работа прекращается в версиях ниже. Его принимая больше памяти, когда я увеличить, но его не получает выпустили, как выпустить его я haved высвобождены все объекты в методе открепление, но он все еще показывает то же самое сделал получить предупреждение памяти и сбой приложения мой кодмасштабирование Mapview Сбой приложения на iOS6
mapView = [[MKMapView alloc] initWithFrame:CGRectMake(0, 0, frame.size.width, frame.size.height)];
mapView.showsUserLocation = YES;
[mapView setDelegate:self];
[self addSubview:mapView];
routeView = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, mapView.frame.size.width, mapView.frame.size.height)];
routeView.userInteractionEnabled = NO;
[mapView addSubview:routeView];
- (MKAnnotationView *)mapView:(MKMapView *)mapView viewForAnnotation:(id <MKAnnotation>)annotation
{
if([annotation isKindOfClass:[TurnAnnotation class]])
{
MKAnnotationView *turnAnnotationView=[[MKAnnotationView alloc]initWithAnnotation:annotation reuseIdentifier:nil] ;
turnAnnotationView.image=[UIImage imageNamed:@"TurnAnnotation1.png"];
turnAnnotationView.canShowCallout=NO;
return turnAnnotationView;
}
else if([annotation isKindOfClass:[PlaceMark class]])
{
MKPinAnnotationView *newAnnotation = [[MKPinAnnotationView alloc] initWithAnnotation:annotation reuseIdentifier:nil];
if (isdefault==YES) {
if(!appDel.appBOOL){
newAnnotation.pinColor = MKPinAnnotationColorGreen;
appDel.appBOOL = YES;
}else {
newAnnotation.pinColor = MKPinAnnotationColorRed;
appDel.appBOOL = NO;
}
}else{
if(!appDel.appBOOL){
newAnnotation.pinColor = MKPinAnnotationColorRed;
appDel.appBOOL = YES;
}else {
newAnnotation.pinColor = MKPinAnnotationColorGreen;
appDel.appBOOL = NO;
}
}
newAnnotation.canShowCallout = YES;
return newAnnotation;
}
return nil;
}