I am confused with Apple material.
In 3 ways we manage the memory, they are :
My doubt is what is the difference between automatic reference counting and manual referance counting.
Can someone explain me ?
In ARC you don't have to release/autorelease the memory allocated by you where as in case of manual you have to take care of this. e.g. manual case
-(void)someMethod
{
NSMutableArray *arr = [[NSMutableArray alloc] init];
//use array
[arr release]; //when array is in no use
}
ARC case
-(void)someMethod
{
NSMutableArray *arr = [[NSMutableArray alloc] init];
//use array
}