Sending MKShape to paramter of incompatible type id MKOverlay Nonnull

189 views Asked by At

I am receiving this warning while I am overlaying the geometry on the map. Any help is greatly appreciated.

Warning: "Sending MKShape to paramter of incompatible type 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

There are 0 answers