I'm not sure if you used the same code as mine, I loaded it from somewhere in the user annotationView , and I also realized that the second time the size is wrong. I noticed that the removeAnnotation function removeAnnotation also make the annotationView call its didMoveToSuperview again! Then I dug up the codes in didMoveToSuperview and found that the codes that I downloaded (hope you will find the same thing) do the animation so that it does the animation codes twice. This creates the problem that βa second click opens a poorly sized annotationβ
Therefore, delete these animation codes or call it elsewhere and NOT in didMoveToSuperview , but correctly. Hope this helps you and hope you share your advice if you find out I'm wrong.
source share