yonel, setImage MKAnnotationView.image, MapViewController.
MapViewController MKMapViewDelgate:
- (MKAnnotationView *)mapView:(MKMapView *)theMapView viewForAnnotation:(id <MKAnnotation>)annotation
.
, , MKnnotation . , mapView (, .. ) (.. ).
, , , , .
init customAnnotation :
- (id)initWithAnnotation:(id <MKAnnotation>)annotation reuseIdentifier:(NSString *)identifier
.
setImage , . View.
, MapType, , ( - annnotationViews ).
If you install the image in the init method, it will not be lost (since it is always installed for the instance).
Does it help?
source
share