Can anyone point out a turorial which explains threading?? In my application, i’m uploading some data (even large sized images) to the servelet. The uploading process may take quite a large time depending on the bandwidth, as usual. So i need to implement threading in it so that the uploading process takes place in the background. Any experts here, may please post an example or a tutorial link or something like that.
Thanks in advance.
Can anyone point out a turorial which explains threading?? In my application, i’m uploading
Share
A very simple and robust way of launching background tasks is using NSOperation and NSOperationQueue. It allows you to create a class (inherited from NSOperation) that represents a task which can be placed in a threaded queue which is handled in the background.
NSOperationQueue documentation
Another easy way of launching something in the background is by using the performSelectorInBackground method: