Weak self in closures and consequences example
I have done abit of research on stackoverflow and apple's documentation about ARC and Weak/Unowned self ( Shall we always use [unowned self] inside closure in Swift ). I get the basic idea about strong reference cycle and how it is not good as they cause memory leaks. However, I am trying to get my head around when to use Weak/Unowned self in closures. Rather then going into the "theory", I think it would really really help if someone could kindly explain them in terms of the bottom three cases that I have. My questions is Is it OK to put weak self in all of them (I think for case two there is