iOS 7 MapKit MKAnnotationView的图像属性类型编码怪异

时间:2013-08-08 00:27:27

标签: mapkit mkannotationview rubymotion ios7

这些是

的结果
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中遇到问题。

提前致谢!

2 个答案:

答案 0 :(得分:0)

你可能想看看Promotion,它是MapKit support(我写的)。它可以很容易地绘制地图屏幕并在地图上添加注释(并自定义它们的外观)。

https://github.com/clearsightstudio/ProMotion

答案 1 :(得分:0)

他们在RubyMotion 2.7中修复了它