0

My program needs to upload some data to the server and I use percentage to show the progress in a UIAlertView. When the program starts uploading, for example, the progress is 10%. I put the program into background and it continued uploading. When I pulled the program back to foreground after ten seconds, the percentage in the UIAlertView became 0% for seconds and then turned to normal, such as 40%. I don't know why this happen, can anyone help me please?

darcyy
  • 5,236
  • 5
  • 28
  • 41
Fantasy
  • 251
  • 1
  • 2
  • 6

1 Answers1

1

It could be that when your appcomes to foreground, perhaps your alertview progress is being set to 0 (initial value) before it updates correctly to the updated progress value.

batman
  • 1,937
  • 2
  • 22
  • 41