0

I am making multiple concurrent requests on my server & it's working fine.

But I want to show the total progress of all request.

How can I achieve this?

My Logic

for i in 0..5 {

   POST Request1

   MultipartformData request2  

}
Blazej SLEBODA
  • 8,936
  • 7
  • 53
  • 93
nirav
  • 573
  • 5
  • 20

1 Answers1

0

If you are using libraries such as Alamofire or AFNetworking they provide you an NSProgress object.
The cool fact about NSProgressis that you can build a sort of hierarchy that keeps a global progress while you are adding child tasks.
For further information check these resources:

Andrea
  • 26,120
  • 10
  • 85
  • 131