I want to animate my UIProgressView
progression from 0 to 1 during 10 seconds.
Code:
[UIView animateWithDuration:10.0 animations:^{
[_myProgressView setProgress:1 animated:YES];
} completion:(BOOL finished)^{
if (finished) NSLog(@"animation finished);
}];
Animation is working fine except that completion and NSLog
are always called instantly.
I tried animateWithDuration: withDelay:
but the delay is not respected and executed immediately.
Has anyone encountered the same problem?
Thanks for you help.