UIView animateWithDuration:delay:options:animations:completion:
메서드를 사용하고 있지만 완료 메서드가 호출되지 않습니다. 여기 내 코드는 다음과 같습니다UIViewAnimateWithDuration 완료가 호출되지 않았습니다.
[UIView animateWithDuration:1 delay:0 options:UIViewAnimationOptionAllowUserInteraction animations:^
{
//random lines of code
}completion:^(BOOL finished){
if (finished)
{
NSLog(@"FINISHED");
}
}];
편집 :가 언제가 호출되는 내 animations:
에 줄을 주석 ??? !!! - 당신이 연속 동작의 움직임을 애니메이션을 적용 할
CGFloat objectY = object.frame.origin.y;
objectY += speed;
object.frame = CGRectMake(object.frame.origin.x, objectY, 75, 75);
임의의 라인을 주석 처리하면 호출됩니까? 또는 완료 블록에 else 절을 추가하려고 시도 했습니까? –
@MertBuran 예. 왜 그런 일이 일어날까요 ??? –
임의의 줄은 무엇입니까? – Wain