<i id='K5zYA'><tr id='K5zYA'><dt id='K5zYA'><q id='K5zYA'><span id='K5zYA'><b id='K5zYA'><form id='K5zYA'><ins id='K5zYA'></ins><ul id='K5zYA'></ul><sub id='K5zYA'></sub></form><legend id='K5zYA'></legend><bdo id='K5zYA'><pre id='K5zYA'><center id='K5zYA'></center></pre></bdo></b><th id='K5zYA'></th></span></q></dt></tr></i><div id='K5zYA'><tfoot id='K5zYA'></tfoot><dl id='K5zYA'><fieldset id='K5zYA'></fieldset></dl></div>
<legend id='K5zYA'><style id='K5zYA'><dir id='K5zYA'><q id='K5zYA'></q></dir></style></legend>

    • <bdo id='K5zYA'></bdo><ul id='K5zYA'></ul>

    1. <small id='K5zYA'></small><noframes id='K5zYA'>

      <tfoot id='K5zYA'></tfoot>
      1. MKMapView 在 iOS 4 中忽略 centerOffset 的更新

        MKMapView ignores update of centerOffset in iOS 4(MKMapView 在 iOS 4 中忽略 centerOffset 的更新)
      2. <tfoot id='aVxNp'></tfoot>
        <i id='aVxNp'><tr id='aVxNp'><dt id='aVxNp'><q id='aVxNp'><span id='aVxNp'><b id='aVxNp'><form id='aVxNp'><ins id='aVxNp'></ins><ul id='aVxNp'></ul><sub id='aVxNp'></sub></form><legend id='aVxNp'></legend><bdo id='aVxNp'><pre id='aVxNp'><center id='aVxNp'></center></pre></bdo></b><th id='aVxNp'></th></span></q></dt></tr></i><div id='aVxNp'><tfoot id='aVxNp'></tfoot><dl id='aVxNp'><fieldset id='aVxNp'></fieldset></dl></div>
          <bdo id='aVxNp'></bdo><ul id='aVxNp'></ul>

          <small id='aVxNp'></small><noframes id='aVxNp'>

        • <legend id='aVxNp'><style id='aVxNp'><dir id='aVxNp'><q id='aVxNp'></q></dir></style></legend>
                <tbody id='aVxNp'></tbody>

                • 本文介绍了MKMapView 在 iOS 4 中忽略 centerOffset 的更新的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我之前创建了一个自定义标注气泡作为 MKAnnotationView 的子视图,因为内置标注非常有限.这需要我在选择 MKAnnotationView 以考虑标注气泡的大小时更改为 centerOffset.这一切都在 iOS 4 出现之前完美运行.现在,在 iOS 4 中,它完全忽略了我对 centerOffset 属性的更新,因此图钉和气泡似乎向下和向右跳(标注气泡的左上角现在位于图钉点应该在的位置).

                  I previously created a custom callout bubble as a subview to the MKAnnotationView because the built in callout is so limited. This requires me to change to centerOffset of the MKAnnotationView when it is selected to account for the size of the callout bubble. This all worked perfectly before iOS 4 came out. Now, with iOS 4, it completely ignores my updating of the centerOffset property and therefore the pin and bubble appear to jump down and to the right (the top left corner of the callout bubble is now at the location where the pin point should be).

                  有谁知道为什么这在 iOS 4 中发生了变化?我可以做些什么来让 MKMapView 识别新的 centerOffset?这是苹果引入的bug吗?

                  Does anyone know why this has changed in iOS 4? Is there something I can do to get the MKMapView to recognize the new centerOffset? Is this a bug that apple introduced?

                  感谢您的帮助!

                  推荐答案

                  确保您使用的是 MKAnnotationView 而不是 MKPinAnnotationView!您不能设置 MKPinAnnotationView 对象的 centerOffset(当然,除非您是子类).

                  Make sure you are using MKAnnotationView and not MKPinAnnotationView! You can't set the centerOffset of a MKPinAnnotationView-object (except if you subclass of course).

                  这篇关于MKMapView 在 iOS 4 中忽略 centerOffset 的更新的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  Hardware Volume buttons change in app volume(硬件音量按钮更改应用程序音量)
                  Cocos2d - How to check for Intersection between objects in different layers(Cocos2d - 如何检查不同层中对象之间的交集)
                  Highlight Read-Along Text (in a storybook type app for iPhone)(突出显示朗读文本(在 iPhone 的故事书类型应用程序中))
                  Cocos2D + Disabling only Retina iPad Graphics(Cocos2D + 仅禁用 Retina iPad 图形)
                  Proper cocos2d scene restart?(正确的 cocos2d 场景重启?)
                  [ios.cocos2d+box2d]how to disable auto-rotation?([ios.cocos2d+box2d]如何禁用自动旋转?)

                      <i id='xNiQ9'><tr id='xNiQ9'><dt id='xNiQ9'><q id='xNiQ9'><span id='xNiQ9'><b id='xNiQ9'><form id='xNiQ9'><ins id='xNiQ9'></ins><ul id='xNiQ9'></ul><sub id='xNiQ9'></sub></form><legend id='xNiQ9'></legend><bdo id='xNiQ9'><pre id='xNiQ9'><center id='xNiQ9'></center></pre></bdo></b><th id='xNiQ9'></th></span></q></dt></tr></i><div id='xNiQ9'><tfoot id='xNiQ9'></tfoot><dl id='xNiQ9'><fieldset id='xNiQ9'></fieldset></dl></div>

                        <legend id='xNiQ9'><style id='xNiQ9'><dir id='xNiQ9'><q id='xNiQ9'></q></dir></style></legend>
                          <bdo id='xNiQ9'></bdo><ul id='xNiQ9'></ul>
                          <tfoot id='xNiQ9'></tfoot>
                        • <small id='xNiQ9'></small><noframes id='xNiQ9'>

                              <tbody id='xNiQ9'></tbody>