ARC means Automatic Reference Counting. iOS 5.0 has got the ARC .In objective C memory release mechanism works on reference counting so its programmers responsibility to manage references of an object, but its often forgotten. So Apple introduce the concept of ARC in 2011 with iOS5 it is somewhat similar to Garbage Collection of Java so compiler will keep track of object references in memory. Once this count is zero means that object is no longer in use so its been deallocated.
If you are not using ARC in your project, add '-fobjc-arc' as a compiler flag for the .h and .m files which are ARC compliant.
0 comments:
Post a Comment