메서드를 만들고 animateWithDuration에서 BOOL 유형을 반환하려고합니다. 하지만 내 개체가 완료 블록에서 감지되지 않는 것 같습니다. 누군가 나에게 설명 할 수있는 이유는 무엇일까요?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;
}
감사합니다.
나는 당신의 해결책과 그 일을 시도한다. 감사합니다 mamnun. –