在UIAnimation块中,我们需要使用__weak self吗?如果我们没有将self声明为weak,它是否会创建内存泄漏的问题?
[UIView animateWithDuration:animationDuration
delay:0
options:UIViewAnimationCurveEaseInOut
animations:^{
[self doSomething];
} completion:^(BOOL finished) {
if (finished) {
[self doSomething];
}
}];
我在下列情况中也感到困惑。你对此有什么想法吗?请分享你的评论。
[self.navController dismissViewControllerAnimated:animated
completion:^{
[self doSomething];
}];
我们应该在这里使用 weak self 吗?