I am having custom Annotation and it's calloutbubble having the view in which the table is there which height is 200.
But while setting it in callout bubble it will not effect the size of callout bubble
How can i achive this?
Here is my code
-(MKAnnotationView *)mapView:(MKMapView *)mapView1 viewForAnnotation:(id<MKAnnotation>)annotation
{
if([annotation isKindOfClass:[CustomAnnotation class]])
{
CustomAnnotation *location = (CustomAnnotation *)annotation;
MKAnnotationView *annotation_View = [mapView1 dequeueReusableAnnotationViewWithIdentifier:@"customAnnotation"];
if (annotation_View == nil)
{
annotation_View = location.annotationView;
if ([location.title isEqualToString:@"My Spot"])
{
annotation_View.image = [UIImage imageNamed:@"orange.png"];
}
else
{
annotation_View.image=[UIImage imageNamed:@"ocean.png"];
}
}
else
{
annotation_View.annotation = annotation;
}
[self configureDetailView:annotation_View];
return annotation_View;
}
return nil;
}
-(void)configureDetailView : (MKAnnotationView*)annotationView1
{
self.AnnotationViewForDetail.frame = CGRectMake(0, 0, 100, 200);
annotationView1.detailCalloutAccessoryView = self.AnnotationViewForDetail;
}