In Objective-C, what does it mean to assign a weak to a strong within a block?

Viewed 379

In Objective-C, what does it mean to assign a weak to a strong within a block? What's happening behind the scene?

e.g.

__weak __typeof(self) wself = self;

void (^cmd)() = ^(){
    __strong __typeof(self) sself = wself;
    if (!sself) return;
    ...
};
2 Answers
Related