Without ARC I can use autorelease for the Array as shown below
//-(NSMutableArray *)getObjects
-(NSMutableArray *)retrieveObjects
{
NSMutableArray *aArray = [[NSMutableArray alloc] init];
// add objects
return [aArray autorelease];
}
How to achieve the same in ARC?
You don't autorelease the object.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With