I would like to know how to use multithreading in iOS. I am aware of GCD and NSOperationQueue, but I am not sure how to use them properly.
- When should I use GCD/NSOperationQueue?
- How do I cancel a queue if the view for the results are no longer in view? (i.e. send a request for something, but user then decides to hit the back button to go to another view, which means I no longer require that "something")
Any examples will be greatly appreciated.
Thank you.