Custom Annotation View do not work on iOS6

后端 未结 2 1249
情话喂你
情话喂你 2021-01-14 20:28

I\'m using the J4n0 Callout code (github) to implement a custom annotation in MapKit.

It was working just fine on iOS5. But on iOS6 I have 2 problems:

2条回答
  •  梦毁少年i
    2021-01-14 20:46

    If annotations are displayed over the AnnotationView try to code:

    - (void)didMoveToSuperview {
        [super didMoveToSuperview];
        [self.superview bringSubviewToFront:self];
    }
    

    Just in case above solution doesn't work try

    view.layer.zposition = 1
    

提交回复
热议问题