To answer my own question (how does this work for me):
, - mapView:viewForAnnotation: ( pinView), CustomAnnotation .
[customAnnotation setSomething: data]
- mapView:viewForAnnotation:
{
pinView = [[[CustomPinView alloc] initWithAnnotation: annotation reuseIdentifier: PinIdentifier] autorelease];
}
- initWithAnnotation:reuseIdentifier:
{
CustomAnnotation *customAnnotation = (CustomAnnotation *)annotation;
[customAnnotation something];
}
, .