Do we need to use __weak self inside UIAnimation Blocks as given below? Whether it will create retain cycle issue if we are not specifying self as weak?
[UIV
You need to use __weak
when retain cycle is possible. This is not that case because animations block is not retained by self.
Another situation to use __weak
is a prolonged action that will call our block after completion and self
can be deallocated during this action. For example, some network request will call interface update for our view controller in completion block. User can exit our screen during request. In this situation no need to retain self
with a block, it's better to use weak self. But using animation blocks is not this situation too.