【问题标题】:ios, is there a way to show MKPinAnnotationView without user tap the pin on MapView?ios,有没有一种方法可以显示 MKPinAnnotationView 而无需用户点击 MapView 上的图钉?
【发布时间】:2011-03-27 16:54:30
【问题描述】:

作为主题,

我只是想要一种无需单击 MapView 上的图钉即可显示 MKPinAnnotationView 的方法?

我尝试使用- (void)selectAnnotation:(id <MKAnnotation>)annotation animated:(BOOL)animated; 的方法

但似乎只能选择一个引脚但很多....我想显示所有引脚的MKPinAnnotationView,有人知道怎么做吗?

感谢您的帮助。

【问题讨论】:

    标签: ios


    【解决方案1】:

    我没有亲自做过,但如果我是你,我会尝试获取这些 MKPinAnnotationView 对象的 image 属性,并以你选择的排列方式显示它们。

    【讨论】:

      【解决方案2】:

      你可以这样想,你“点击”它,显示注释,那么点击是什么?

      - (void)selectAnnotation:(id <MKAnnotation>)annotation animated:(BOOL)animated;
      

      【讨论】:

        【解决方案3】:

        for 循环?

        • (void)selectAnnotation:(id)annotation animated:(BOOL)animated;

        【讨论】:

          猜你喜欢
          • 1970-01-01
          • 2013-06-23
          • 1970-01-01
          • 1970-01-01
          • 1970-01-01
          • 1970-01-01
          • 1970-01-01
          • 1970-01-01
          • 2012-01-01
          相关资源
          最近更新 更多