blocks, self, retain cycles
问题 I'm having a bit of trouble getting my head around referencing self within a block, and not creating a retain cycle. Can you let me know if my understanding is correct: If I ever reference self within a block, it will create a retain cycle, and instead I should be creating a weak reference to self outside of the block and then using that weak reference inside the block? Thanks! 回答1: Yes, that is correct, with a few exceptions: A retain cycle only happens if self ends up retaining the block