我尝试从 animateWithDuration 创建方法并返回 BOOL 类型。但是在完成块上似乎没有检测到我的对象。有人可以向我解释一下,为什么会发生这种情况?
+ (BOOL)showAnimationFirstContent:(UIView *)view {
BOOL status = NO;
CGRect show = [SwFirstContent rectFirstContentShow];
[UIView animateWithDuration:DURATION
delay:DELAY
options:UIViewAnimationOptionBeginFromCurrentState
animations:^{ view.frame = show; }
completion:^( BOOL finished ) {
status = YES;
}];
return status;
}
提前谢谢。