I have a NSMutablearray property in my class and i need to access it from another class what should i do ?? i tried to access it using a class method called breakfast , but it didnt see the property !!
This is my code
@interface FirstViewController : UIViewController {
NSMutableArray *food;
}
+ (NSArray*)breakfast;
@property (nonatomic , strong) NSMutableArray * food;
// in .m file
+ (NSMutableArray*)breakfast {
return self.food ; // here class method dont see the property called food
}