Search code examples
iphoneiosios4pushviewcontrolleruiprogressview

UIProgressview gets reset


I am trying to implement UIProgressview in my application it works fine , until i navigate to another view. When i navigate to another view controller , the progressview gets reset and starts updating again.

Is this a intended behavior of uiprogressview when pushing a view-controller , is there a way to fix my issue.

Please let me know your thoughts and advices.


Solution

  • in view will disappear you can set some user defaults and again when you pop out the view get the value and set the progress bar with it. Don't forget to reset the last value when your bar get the original value from poping.