mapkit mostra anotação por padrão
Eu tenho uma anotação mostrando no mapkit com uma imagem personalizada, mostrando bem,
mas a anotação mostra depois de gravar o pin,
Como posso ter a anotação exibida por padrão ?, quando eu começo a exibição? Whit out tocando o pino.
<code>- (MKAnnotationView *)mapView:(MKMapView *)mv viewForAnnotation:(id <MKAnnotation>)annotation { if([annotation isKindOfClass:[MKUserLocation class]]) return nil; NSString *annotationIdentifier = @"PinViewAnnotation"; MKPinAnnotationView *pinView = (MKPinAnnotationView *) [mapView dequeueReusableAnnotationViewWithIdentifier:annotationIdentifier]; if (!pinView) { pinView = [[[MKPinAnnotationView alloc] initWithAnnotation:annotation reuseIdentifier:annotationIdentifier] autorelease]; [pinView setPinColor:MKPinAnnotationColorGreen]; pinView.animatesDrop = YES; pinView.canShowCallout = YES; UIImageView *houseIconView = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"tijereta.png"]]; pinView.leftCalloutAccessoryView = houseIconView; [houseIconView release]; } else { pinView.annotation = annotation; } return pinView; } </code>
obrigado