What is the advantage of doing this:
NSArray *array = [[NSArray alloc] initWithObjects:@"Year", "@Capital", ..., nil];
self.hintArray = array;
[array release];
Instead of assigning directly to my class variable like this:
self.hintArray = [[NSArray alloc] initWithObjects:@"Year", "@Capital", ..., nil];
Why do we create a temporary local object then release it instead of just assigning to our class variable?