NSArray *items;
NSArray *items = nil;
Is there any difference in these two statements in Objective-C?
NSArray *items;
NSArray *items = nil;
Is there any difference in these two statements in Objective-C?
Objects are initialized to zero or nil before the initializer runs.
Then check this for more info:
It isn’t necessary to initialize all instance variables of an object explicitly, just those that are necessary to make the object functional. The default set-to-zero initialization performed on an instance variable during allocation is often sufficient. Make sure that you retain or copy instance variables, as required for memory management.