加载新的视图时UIProgressView满(Load new view when UIProgre

2019-10-17 01:21发布

所以我有一个可以作为一种载卸杆的UIProgressView。 父的UIView是一个导航控制器内,当UIProgressView满了,我想去导航层次结构中的下一个视图。 如何做到这一点的任何提示?

Answer 1:

你的进步观点可能是由一个NSTimer,正确周期性地填充?

比方说,你要在十秒过程中填写了十个部分。

每个刻度的NSTimer将增加:

progress = progress + 0.1;
if (progress == 1.0) {
[self.navigationController pushViewController:viewController animated:YES];
}

进步在哪里无论是控制你UIProgressView的填充率和ViewController是你的viewController。



Answer 2:

[self.navigationController pushViewController:yourViewController动画:YES]; ?



文章来源: Load new view when UIProgressView is full