It's requied to create a category with a new variable (of type NSArray).
OriginalClass+Extension.h:
@interface OriginalClass (Extension) {
NSArray *_array;
}
@property (nonatomic, retain) NSArray *array;
@end
But I got the error: Cannot declare variable inside @interface or @protocol
.
Please help to solve the problem.