Removing NSOperation from queue when view changes.

Posted by Nithin on Stack Overflow See other posts from Stack Overflow or by Nithin
Published on 2010-03-22T07:22:46Z Indexed on 2010/03/22 9:41 UTC
Read the original article Hit count: 487

Filed under:
|

I am creating an application which involves so many web-service calls. I am using NSOperation to execute the web-service calls. There are several views in the application and I'm calling the web-service each time the view loads. Since it is navigation, if user decides to go back to the previous view even before the operation gets completed, another operation is getting into the queue and will be waiting for the previous operation to be completed. Is there any way to stop the previous operation from being executed when its view changes? pls help

© Stack Overflow or respective owner

Related posts about iphone

Related posts about nsoperation