Fixed How do I avoid capturing self in blocks when implementing an API? #dev #it #asnwer
Fixed How do I avoid capturing self in blocks when implementing an API? #dev #it #asnwer
How do I avoid capturing self in blocks when implementing an API?
I have a working app and I’m working on converting it to ARC in Xcode 4.2. One of the pre-check warnings involves capturing selfstrongly in a block leading to a retain cycle. I’ve made a simple code sample to illustrate the issue. I believe I understand what this means but I’m not sure the “correct” or recommended way to implement…
View On WordPress












