Without ARC compatibility we write
NSArray *items = [[NSArray alloc] initWithObjects: @"a", @"b", @"c", @"d", nil]; self.allItems = items; [items release];
I'm just wondering if we can use the ARC-enabled shortcut as follows:
self.allItems = [[NSArray alloc] initWithObjects: @"a", @"b", @"c", @"d", nil];
Is it possible to exclude items when we use ARC? What is the best practice?
source share