when i write this method :
-(MKAnnotationView *) mapView:(MKMapView *)mapView viewForAnnotation:(id<MKAnnotation>)annotation
{
MKPinAnnotationView *view =[self.mapView dequeueReusableAnnotationViewWithIdentifier:@"pin"];
if (view == nil) {
view =[[MKPinAnnotationView alloc]initWithAnnotation:annotation reuseIdentifier:@"pin"];
}
}
there is warning on my *view
object.."Incompatible pointer types initialising MKPinAnnotationView *
with an expression of type MKAnnotationView *
"
what is the solution for this please