A retain cycle is a situation in reference-counted memory management when two (or sometimes more) objects have strong references to each other.
In my TextViewTableViewCell, I have a variable to keep track of a block and a configure method where the block …
ios swift retain-cycleLets say we have three objects: a grandparent, parent and child. The grandparent retains the parent, the parent retains the …
ios objective-c memory-management automatic-ref-counting retain-cycleI read a lot of posts about using __weak self inside dispatch_async, and now I am a litle bit …
ios objective-c-blocks weak-references retain-cycleSuppose I already create a weak self using __weak typeof(self) weakSelf = self; [self doABlockOperation:^{ ... }]; Inside that block, if I …
ios memory-management automatic-ref-counting block retain-cycleI'm using an NSTimer like this: timer = [NSTimer scheduledTimerWithTimeInterval:30.0f target:self selector:@selector(tick) userInfo:nil repeats:YES]; Of …
objective-c automatic-ref-counting nstimer retain-cycleI have reqest with block. But the compiler issues a warning "Capturing 'self' strongly in this block is likely to …
ios objective-c automatic-ref-counting objective-c-blocks retain-cycleDo we need to use __weak self inside UIAnimation Blocks as given below? Whether it will create retain cycle issue …
ios automatic-ref-counting objective-c-blocks retain-cycleSay I have the following method inside a UIViewController subclass: - (void)makeAsyncNetworkCall { [self.networkService performAsyncNetworkCallWithCompletion:^{ dispatch_async(dispatch_get_…
ios objective-c uiviewcontroller objective-c-blocks retain-cycleI have never worked on non ARC based project. I just came across a zombie on my ARC based project. …
objective-c xcode automatic-ref-counting retain-cycleEDIT2: No. The suggested answer is about async calls. I want & need synchronous calls, like in a normal, standard …
objective-c recursion automatic-ref-counting objective-c-blocks retain-cycle