Pergunta

Mapkit parece ter um problema estranho !!!

Eu tenho algum código que adiciona algumas anotações e depois ligo

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]);
                }

Agora, a parte estranha é que, de tempos em tempos, eu posso entrar na contagem de mapas.

No entanto, a contagem final ainda é 1 depois de tudo isso!

Mais estranho!

Foi útil?

Solução

Registraram um bug com a Apple ....

Eles reconhecem que este é um problema com 4.2

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top