init project
This commit is contained in:
29
ios/Classes/Category/MAPolygon+Flutter.m
Normal file
29
ios/Classes/Category/MAPolygon+Flutter.m
Normal file
@ -0,0 +1,29 @@
|
||||
//
|
||||
// MAPolygon+Flutter.m
|
||||
// amap_map
|
||||
//
|
||||
// Created by lly on 2020/11/12.
|
||||
//
|
||||
|
||||
#import "MAPolygon+Flutter.h"
|
||||
#import <objc/runtime.h>
|
||||
|
||||
@implementation MAPolygon (Flutter)
|
||||
|
||||
- (NSString *)polygonId {
|
||||
return objc_getAssociatedObject(self, @selector(polygonId));
|
||||
}
|
||||
|
||||
- (void)setPolygonId:(NSString * _Nonnull)polygonId {
|
||||
objc_setAssociatedObject(self, @selector(polygonId), polygonId, OBJC_ASSOCIATION_COPY);
|
||||
}
|
||||
|
||||
- (instancetype)initWithPolygonId:(NSString *)polygonId {
|
||||
self = [super init];
|
||||
if (self) {
|
||||
self.polygonId = polygonId;
|
||||
}
|
||||
return self;
|
||||
}
|
||||
|
||||
@end
|
Reference in New Issue
Block a user