Search code examples
iosiphoneobjective-cnsoperationnsoperationqueue

NSOperation gets completed before background task are over


NSOperation gets completed before background task are over

I am calling and NSOperation and have set max concurrent task 2 NSOperation calls some background methods but NSOperation does not wait for the background tasks to be completed  and get removed from the queue so next operation starts which I do not want Please help, how to let NSOperation continue till the background task gets completed.


Solution

  • I hope you may get your answer here in

    1. Stackoverflow post.

    2. StackOverflow Discussion