If a block is only using self to call a method, is it necessary to weakify it to prevent retain cycle?
This is not a duplicate of another post, I am not asking if this needs to be done within UIView animation block, but whether it needs to be done when self block is only calling method call. I have added a dispatch_async example as well.
@weakify(self);
// Need to strongify?
dispatch_async(dispatch_get_main_queue(), ^{
@strongify(self);
[self doSomething];
});
// Need to strongify?
[UIView animateWithDuration:0.125 animations:^{
@strongify(self);
[self layoutIfNeeded];
}