Home > DeveloperSection > Interviews > Retain cycle or Retain loop

Posted on    November-03-2015 3:16 AM

 iPhone Ios  Objective C 
 1 Answer(s)
  501  View(s)
Rate this:

Tarun Kumar

Total Post:107

Posted on    November-03-2015 4:16 AM

When object A retains object B, and object B retains A. Then Retain cycle happens. To overcome this use "close" method.
Objective-C's garbage collector (when enabled) can also delete retain-loop groups but this is not relevant on the iPhone, where Objective-C garbage collection is not supported.

Don't want to miss updates? Please click the below button!

Follow MindStick