0
我有这样的代码,例如:从完成期间上海华删除删除它前面
[UIView animateWithDuration:0.3
delay:0
options:UIViewAnimationOptionCurveEaseOut
animations:^{
[self animateMenuOut:menu];
}completion:^(BOOL finished) {
[menu removeFromSuperview];
}];
而是生动活泼的,但是,它只是从视线中消失。删除[menu removeFromSuperview];
行使它工作得很好。
完成块中的代码在动画完成后执行(或者被取消,在这种情况下完成的参数将为“否”)。 – titaniumdecoy 2012-03-02 00:02:25
你确定吗?通常动画代码可以避免阻塞。 – DarkMalloc 2012-03-02 00:03:53
那么我该如何解决这个问题呢? – Andrew 2012-03-02 00:06:29