MKMapView refresh after pin moves

前端 未结 7 1245
猫巷女王i
猫巷女王i 2020-12-14 23:42

A custom AnnotationView is updated with new coordinates. But the problem is that it visually updates only after some manipulations with MKMapView, e.g. zooming or moving. Wh

相关标签:
7条回答
  • 2020-12-15 00:18

    I solved this error with an asynchronous call, at least 0.5 delay.

    e.g.: [self performSelector:@selector(redrawPins) withObject:nil afterDelay:0.5];

    Where "redrawPins" is the function which adds and removes pins.

    0 讨论(0)
提交回复
热议问题