Using property

This commit is contained in:
Michael Starke
2019-08-16 14:57:32 +02:00
parent 9c177afdb0
commit 9b2f8e5f6f

View File

@@ -36,7 +36,7 @@ static id propertyIMP(id self, SEL _cmd) {
+ (BOOL)resolveInstanceMethod:(SEL)aSEL {
if ([NSStringFromSelector(aSEL) hasPrefix:MPCustomAttributePropertyPrefix]) {
class_addMethod([self class], aSEL,(IMP)propertyIMP, "@@:");
class_addMethod(self.class, aSEL,(IMP)propertyIMP, "@@:");
return YES;
}
return [super resolveInstanceMethod:aSEL];