RSS

How to call webservice in background Through disptach queue

26 Apr

1 ) you have to import the following library file to class in which you want to create disptach_queue

#import

2 ) Then create object for dispatch_queue

dispatch_queue_t backgroundQueue;

3 ) Now just initialize queue where you want using this code

//1)Create backgrounnd queue
backgroundQueue= dispatch_queue_create(“jasoncall.backgroundqueue”, NULL);
//2)call asynchronously process through created dispatch queue
dispatch_async(backgroundQueue, ^(void){
[self GetClientInfoBackBroundCall];/// function name which you want to call in background
});

Advertisements
 
1 Comment

Posted by on April 26, 2012 in Uncategorized

 

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

 
%d bloggers like this: