I have a PFObject Subclass SomeClass, to which i added a method iconImageName
.h
@interface SomeClass : PFObject
@property (nonatomic, strong) NSDictionary * availableAttributes;
@property (nonatomic, strong) NSString * type;
- (NSString *)iconImageName;
@end
.m
@implementation SomeClass
@dynamic availableAttributes;
@dynamic type;
+ (NSString *)parseClassName {
return NSStringFromClass([self class]);
}
- (NSString *)iconImageName {
return [NSString stringWithFormat:@"icon-type-%@", self.type];
}
@end
but after calling
[object iconImageName] i get
*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[PFObject iconImageName]: unrecognized selector sent to instance 0x174133b00'
i can confirm that the object is indeed SomeClass
this also happens when i use a class method +