1

So I have a UIProgressView that works as a sort of loading bar. The parent UIView is inside a navigation controller, and when the UIProgressView is full, I want to go to the next view in the navigation hierarchy. Any tips on how to do this?

Karoly S
  • 3,180
  • 4
  • 35
  • 55
Julian Coltea
  • 3,599
  • 10
  • 26
  • 32

2 Answers2

1

Your progress view is probably being filled periodically by an NSTimer, correct?

Let's say you want to fill it in ten parts over the course of ten seconds.

Each NSTimer tick would add:

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

Where progress is whatever controls the fill rate of your UIProgressView and viewController is your viewController.

Matt Meyers
  • 143
  • 6
0

[ self.navigationController pushViewController:yourViewController animated:YES ]; ?

Greg Price
  • 2,556
  • 1
  • 24
  • 33