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
}
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
}
If you are using libraries such as Alamofire
or AFNetworking
they provide you an NSProgress
object.
The cool fact about NSProgress
is 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: