In the interface (.h) of the viewController:
@property (strong, nonatomic) NSMutableArray* myMutableArray;
calculate method is as:
- (void) calculate {
DataObject* pObj = [DataObject objStart:(dataStart) objEnd:(dataEnd) objDay:(day)];
[myMutableArray addObject:pObj];
}
I receive this error message:
Use of undeclared identifier 'myMutableArray': did you mean '_myMutableArray' ?