The effect of automatic reference counting (ARC) on memory leaks

I'm new to iOS 5 and ARC, so sorry my silly question.

If we use ARC in our project, does this mean that there will be no memory leaks at all.

Do I need to use tools for detecting memory leaks and NSZombies if we use ARC?

+5
source share
3 answers

ARC will help you eliminate some types of leaks because you will not forget individual objects releaseor autorelease. For example, this type of error becomes impossible:

myLabel.text = [[NSString alloc] initWithFormat:@"%d", 17];
// oops, just leaked that NSString!

ARC , . - , , , . , , , / . ARC , , .

+5

, . , , , . .

0

ARC , , .

- . , ARC ObjC - , objc (, malloc/new).

NSZombies, ARC?

. , , . , , , , (, ).

0

All Articles