0
+ (MultiRowCalloutAnnotationView *)calloutWithAnnotation:(id<MultiRowAnnotationProtocol>)annotation onCalloutAccessoryTapped:(MultiRowAccessoryTappedBlock)block {
return [[[MultiRowCalloutAnnotationView alloc] initWithAnnotation:annotation reuseIdentifier:MultiRowCalloutReuseIdentifier onCalloutAccessoryTapped:block] autorelease];
}
- (id)initWithAnnotation:(id<MultiRowAnnotationProtocol>)annotation reuseIdentifier:(NSString *)reuseIdentifier onCalloutAccessoryTapped:(MultiRowAccessoryTappedBlock)block {
self = [super initWithAnnotation:(id<MKAnnotation>)annotation reuseIdentifier:reuseIdentifier];
if (self) {
self.contentHeight = 80.0;
_yShadowOffset = 6;
self.offsetFromParent = CGPointMake(8, -14); //this works for MKPinAnnotationView
self.enabled = NO;
self.backgroundColor = [UIColor clearColor];
self.cellInsetX = 15;
self.cellOffsetY = 10;
self.onCalloutAccessoryTapped = block;
[self setTitleWithAnnotation:annotation];
[self setCalloutCellsWithAnnotation:annotation];
}
return self;
}
- (id)initWithAnnotation:(id<MultiRowAnnotationProtocol>)annotation reuseIdentifier:(NSString *)reuseIdentifier {
self = [self initWithAnnotation:annotation reuseIdentifier:reuseIdentifier onCalloutAccessoryTapped:nil];
return self;
}
Refer image hereпользовательские Выноска вид не отображает центр карты
этот код работал для меня .. – Heena