I am trying to figure out a way to use typeof to create a weak reference to self for use in blocks to avoid retain cycles.
typeof
self
When I first rea
I have this macro
#define weaken(object) __typeof__(self) __weak weakSelf = object
And i use it like this
weaken(self); //The block referencing weakSelf goes here