I have developed 3 Android and 2 Iphone Apps, as I am from the Java background i got
best practises to make network/web service call working on different threads correctly. Making parallel multiple calls other than main thread.
But while going across iOS platform for almost about 2 iphone apps, i have not yet got which
are the best practises for iOS web service call model, so that UI will not be affected.
I have used NSURLConnection and its callback methods.
Can anyone help me out here with an example?
In any case, I’d evaluate existing 3rd-party networking frameworks/libraries (like with java), before starting from scratch and implementing all by yourself!
Start for example with AFNetworking.
This is one of the most successful ones and uses NSURLConnection with NSOperation (and NSOperationQueue for async requests) etc. under the hood.
Update
Alamofire is the Swift counterpart of AFNetworking.