【问题标题】:iOS 7 MapKit MKAnnotationView's image property type encoding weirdnessiOS 7 MapKit MKAnnotationView 的图像属性类型编码怪异
【发布时间】:2013-08-08 00:27:26
【问题描述】:

这些是

的结果
method_getTypeEncoding(class_getInstanceMethod(MKAnnotationView.class, @selector(setImage:)))
method_getTypeEncoding(class_getInstanceMethod(MKAnnotationView.class, @selector(image)))

7.0:

v12@0:4^{UIImage=#^vf{?=b1b3b1b1b1b16b2}}8
^{UIImage=#^vf{?=b1b3b1b1b1b16b2}}8@0:4

和 6.1:

v12@0:4@8
@8@0:4

我不明白为什么它是 ^{... 而不是 @。它在Rubymotion 中给我带来了问题。

提前致谢!

【问题讨论】:

  • 你在使用 RubyMotion 吗?这在我看来就像 Obj-C。
  • 是的,我在 Objective-C 中运行这些调用。 Rubymotion 在 .bridgesupport 文件中使用这些结果。
  • 啊,明白了。您可能需要提交 RubyMotion 支持票。

标签: mapkit mkannotationview rubymotion ios7


【解决方案1】:

您可能想查看Promotion,它是MapKit support(我写的)。它使绘制地图屏幕并在地图上添加注释(并自定义其外观)变得非常容易。

https://github.com/clearsightstudio/ProMotion

【讨论】:

    【解决方案2】:

    他们在 RubyMotion 2.7 中修复了它

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2023-03-14
      • 2014-03-01
      • 2011-12-27
      • 2020-06-05
      • 1970-01-01
      • 2012-04-08
      • 1970-01-01
      相关资源
      最近更新 更多