-4

What is Automatic Reference Counting?
i am new iPhone developer.
thanks in advance..

DD_
  • 7,230
  • 11
  • 38
  • 59
Mr.savaliya
  • 259
  • 2
  • 8

3 Answers3

0

ARC is automatic reference counting. Prior to ARC we use manual release/retain/autorelease calls for memory management But Apple has introduced ARC to remove this manual memory management.

Here is a good tutorial of Ray Wenderlich

And to understand ARC you should have some knowledge of Memory Management

Inder Kumar Rathore
  • 39,458
  • 17
  • 135
  • 184
0

Automatic reference counting (ARC) was introduced in the iOS 5 sdk to free Objective-C programmers from having to handle memory management by making memory management the job of the compiler.

If you developer with Objective-C prior to the iOS 5 SDK or talked to Obj-C programmers then you are probably aware of how tedious task memory management could become. When using ARC there is no need for retain and release calls, and not only that in many cases ARC can provide a significant performance increase.

Rushabh
  • 3,208
  • 5
  • 28
  • 51
0

If you had asked the same question to WIKI , the first line you would see is

In Objective-C programming, Automatic Reference Counting (ARC) is a memory management enhancement where the burden of keeping track of an object's reference count is lifted from the programmer to the compiler.

That includes everything you need to understand as a beginner. You can see the complete description here

And, next, if you want to know How ARC works?, I don't think you could see anything better than Brad's answer here.

Community
  • 1
  • 1
DD_
  • 7,230
  • 11
  • 38
  • 59