缩放后更改 AnnotationView 的 CenterOffset
我需要更改当缩放级别更改时 AnnotationView 的 centerOffset 属性。
对此有什么想法吗?
此致 利马
Possible Duplicate:
MKMapView ignores update of centerOffset in iOS 4
I need to change the centerOffset property of an AnnotationView when the zoomlevel changed.
Any ideas about this?
Best Regards
Lima
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这在 ios5 中对我来说效果很好 - 具体来说,我有一个自定义注释视图,它可以更改其框架(展开和折叠)。我需要在框架更改后调整 centerOffset,否则在地图缩放级别更改后注释视图将位于错误的位置。
this works fine for me in ios5 - to be specific, I have a custom annotation view which changes its frame (expands and collapses). I need to adjust the centerOffset after the frame change otherwise the annotation view would be in the wrong place after the zoom level of the map changes.