将MKShape发送到不兼容类型ID MKOverlay Nonnull的参数

时间:2017-04-05 15:29:13

标签: objective-c mkmapview mapkit mkoverlay mkpolygon

我在地图上覆盖几何图形时收到此警告。 非常感谢任何帮助。

警告:"将MKShape发送到不兼容类型ID MKOverlay Nonnull的参数。"

enter image description here

@interface store : NSObject

@property (nonatomic, copy, readwrite) MKShape *storeGeometry;

// On map   
 if([store.storeGeometry isKindOfClass:MKPolygon.class]) {
                [self.map addOverlay:store.storeGeometry];
            }

0 个答案:

没有答案