1

I have an overlapping problem in mapkit annotation.

I set CalloutMapAnnotation in viewForAnnotation as delegate.

I have gone through multiple answers and have even tried changing z index but that too has not worked for me.

Here is an image of the problem:

enter image description here

I tried the following code in the method didAddAnnotationViews but that also does not work.

if([annView.annotation isKindOfClass:[CalloutMapAnnotation class]]){

     [[annView superview] sendSubviewToBack:annView];
}
coder123
  • 841
  • 1
  • 7
  • 19
Ruchi Makadia
  • 1,005
  • 1
  • 7
  • 20

0 Answers0