I have an interface
@interface A { NSMutableArray *_myArray; } @property(nonatomic, retain)NSMutableArray *myArray;
In in the implementation I have written
@synthesize myArray = _myArray;
And in the body of the code where I am using this array is only storing some arrays values which is like this...
-(void)updateArray:(NSArray*)p_NewValues { self.myArray = nil; myArray = [NSMutableArray alloc]initwithArray:p_NewArray]; }
but unfortunate in code review I found that I don't required any variable definition only Synthesize is OK, can anybody explain why?