How can we use NSOperation queue? what is the advantage of using it ?

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is race condition in ios?

449


DB updation when app new version comes ?

890


In which language is ios written?

444


Explain me what is arc? How it works?

446


Do you know what are layer objects and what do they represent?

472






In nsfetchrequest can we fetch only a selective few attributes of an entity? How?

439


What are “strong” and “weak” references? Why are they important and how can they be used to help control memory management and avoid memory leaks?

433


Explain how app delegate is declared by Xcode project templates?

494


What are ios apps written in?

460


Explain how you can add frameworks in Xcode project?

440


What is nsuserdefaults?

480


What devices will support ios 7?

472


What is the difference between delegates and notifications in iOS operating system?

462


What is the concurrency how many ways you know to achieve concurrency?

417


When would you say that an app is not in a running state?

604