NSMutableArray *myArray = [[NSMutableArray alloc] init];
MyClass *obj1 = [[MyClass alloc] init];
[myArray addObject: obj1];
How to clean the old obj1 reference here, if I want to reuse the variable name. Without destroying anything in the array.
obj1 = nil
OR
[obj1 release];
// What is the differences?
obj1 = [[MyClass alloc] init];
[myArray addObject: obj1];
........... Continue using obj1 and add in array.