How to avoid retain cycle with delaying block invocation on iOS
问题 I am really stumped with this one. I have been reading all the info I can get my hands on about how to properly handle variables inside blocks. Note: I am not using arc. So, say I have an animation that looks like this: [UIView animateWithDuration:.5 animations:^{ textCard.alpha = 1.f; self.dotView.alpha = 1.f; self.subtitles.alpha = 0; }completion:^(BOOL finished){ [self.playerLayer removeFromSuperlayer]; self.playerLayer = [AVPlayerLayer playerLayerWithPlayer:self.vidPlayer]; self