-4

I am new in NSOperationQueue, I need to call web-service in background process using NSOperationQueue, how to do that, please help me. I have spend more time for this.

Thanks in Advance

SampathKumar
  • 2,525
  • 8
  • 47
  • 82

2 Answers2

0

There are some good tutorials and guides on the topic, even in the apple documentation. Use the search function more, or you'll get a lot of downvotes for asking trivial questions.

Alexander
  • 8,117
  • 1
  • 35
  • 46
0

For the OperationQueue-Part try

NSOperationQueue *q = [[NSOperationQueue alloc] initWithBlock:^{
//your code here
//and here ;)
}];

It will start automatically. For more on OperationQueues, look at the docs: https://developer.apple.com/library/mac/#documentation/cocoa/Reference/NSOperationQueue_class/Reference/Reference.html

katzenhut
  • 1,742
  • 18
  • 26