How to call webservice in background Through disptach queue

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


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


Leave a Reply

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

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

Google+ photo

You are commenting using your Google+ 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 )


Connecting to %s