Santrack
Santrack

Reputation: 752

Accessing self inside GCD block in iOS

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

Upvotes: 0

Views: 155

Answers (1)

Xcoder
Xcoder

Reputation: 1807

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.

Upvotes: 1

Related Questions