UIProgressBar restarts while downloading through NSURLConnection

173 Views Asked by At

In my app, I have 2 view. first view is table view which contains list of videos and second view displays sync button to download video from url.

Process:

FirstView (Clicked on Any Row)---> SecondView (Navigation)

SecondView ---> click on sync ---> downloading starts with NSURLConnection and UIProgressBar starts updating.

When I pop SecondView to FirstView, downloading is in progress. Then again If I click on same row of FirstView ---> SecondView, still downloading in progress but UIProgressBar becomes zero.

I need when I push & pop views my progress bar should not be affected while downloading.

Any suggestion/sample code guys. Thanks for help.

1

There are 1 best solutions below

0
On

Take progress bar in app delegate