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’ ?
You are using XCode4 🙂
Here you are not required to @synthesize. Compiler creates all ivars itself as _ivarName.
i.e.,
If you want to override it then you can as
or, in this way