Daily iOS
Memory and ARCJD.com

Stored closures and self lifetime

A UIKit ViewController keeps an upload completion block in a property, and the block changes one of the ViewController's labels. After the upload finishes the closure is still sitting in that property. How would you break the loop between it and self?

Submit