Swift Fun Algorithms: Closure Reference Cycles

Profile Picture
- Published on Mar 10, 2017馃審 Public

Let's look at another interesting scenario where Retain Cycles and occur within our program. Today, we examine closure blocks that are pretty tricky when it comes to accessing certain elements like self. To fix the issue, we use something called a Capture List to enable weak references for self and other objects. Enjoy. https://developer.apple.com/library/c... Facebook Group https://www.facebook.com/groups/12406... iOS Basic Training Course https://www.letsbuildthatapp.com/basi... Completed Source Code https://www.letsbuildthatapp.com/cour... Follow me on Twitter: https://twitter.com/buildthatapp