How can we use NSOperation queue? what is the advantage of using it ?
Answer / babu
NSOperationQueue can be more suitable for long-running operations that may need to be cancelled or have complex dependencies. It is possibles to cancel operations that have been enqueued in an NSOperationQueue (as far as the operations support it).
NSOperationQueue gives you a lot more control over how your operations are executed. You can define dependencies between individual operations.
| Is This Answer Correct ? | 0 Yes | 0 No |
What is inactive state in ios?
Explain how do I get a call when my ipad rings?
What is difference between synchronous and asynchronous in web request in iOS operating system?
How to parse xml? Explain
What is synchronized() block in objective c? What is the use of that?
How are non-atomic and atomic properties different? Which one is the default property for synthesized properties? When would a user operate one over the other?
What are the ways to store data localy on iphone device?
Enlist the methods to achieve concurrency in ios?
What is use of nsoperation? How nsoperationque works?
What is completion handler in ios?
What is ios deadlock?
How to switch off predictive text?