小编Nts*_*skX的帖子

UIView animateWithDuration和UIProgressView setProgress

我希望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:但延迟没有得到尊重并立即执行.

有谁遇到过同样的问题?

谢谢你的帮助.

objective-c uiprogressview uiviewanimation ios

18
推荐指数
3
解决办法
1万
查看次数