A question about the retain cycle with block. In the ARC Model.
Say, an instance of view controller named 'vc', it holds reference to a block. Within the block, vc is used for some action :
{
//this is a piece of code snippet in vc
self.vcBlock = {
[self someAction];
}
}
I understand that this leads to retain cycle , because vc holds a strong reference to the block while the block will hold a strong reference to vc as well.
But how about referencing a member variable of vc whithin the block:
{
//this is a piece of code snippet in vc
self.vcBlock = {
[self.obj someAction];
}
}
Does this cause retain cycle? I think that the relationship of these references can be expained as below:
So, I think there is no retain cycle exists, any problem?