我希望UIProgressView在10秒内将我的进度从0变为1.
码:
[UIView animateWithDuration:10.0 animations:^{
[_myProgressView setProgress:1 animated:YES];
} completion:(BOOL finished)^{
if (finished) NSLog(@"animation finished);
}];
Run Code Online (Sandbox Code Playgroud)
动画工作正常,但完成后NSLog总是立即调用.
我试过animateWithDuration: withDelay:但延迟没有得到尊重并立即执行.
有谁遇到过同样的问题?
谢谢你的帮助.