objective c - How to use the @dynamic directive in a Category implementation? -
When I try to use @ dynamic directive in the class implementation, I'm not assigned "dynamic @ dynamic An interface can be done ".
Does anyone know if there is a proper way to use this instruction in this category?
Define the interface for the class, as you would with a class:
@interface NSObject (RetainProperty) @property (nonatomic, readonly) BOOL more ThanOneRetain; @end @implementation NSObject (RetainProperty) @dynamicMore ThanOneRetain; - (BOOL) more orthodontane {Returns (1 Lt; [self-sustaining number]); } @end
Comments
Post a Comment