我在地图上覆盖几何图形时收到此警告。 非常感谢任何帮助。
警告:"将MKShape发送到不兼容类型ID MKOverlay Nonnull的参数。"
@interface store : NSObject
@property (nonatomic, copy, readwrite) MKShape *storeGeometry;
// On map
if([store.storeGeometry isKindOfClass:MKPolygon.class]) {
[self.map addOverlay:store.storeGeometry];
}