Guide29K views1,002 votes0 replies1,582 following
Break Objective-C Block Retain Cycles With __weak and __strong
Capture self weakly in blocks and promote it strongly inside to avoid retain cycles under ARC.
ReadMeFeed / Community knowledge
Real questions. Useful conversations. Find the people who know your stack.
Capture self weakly in blocks and promote it strongly inside to avoid retain cycles under ARC.
View controllers that never deallocate after dismissal usually mean a retain cycle with a block. This guide maps symptoms to causes and gives ordered checks and fixes for ARC in Objective-C.