Explain what ARC is and how it works in iPhone / Objective C ? Or what are some of the things you need to be careful about when using ARC in Xcode?


 ARC stands for Automatic Reference Counting, it is not a runtime process but rather a preprocessor system which inserts retain, release and autorelease calls into your code before it is compiled.

The answers are the same as with normal memory management, avoid over retains and retain cycles.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s