سؤال

When I access a self object inside a view animation API like this

[UIView animateWithDuration:10 animations:{    
    // accessing self object.
}];

will this lead to retain cycle?

Thanks

هل كانت مفيدة؟

المحلول

As per the documentation , the animations block is defined as

"A block object containing the changes to commit to the views. This is where you programmatically change any animatable properties of the views in your view hierarchy."

So answer is no.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top