Skip to content

iOS WebService calling structure with call back response in block. All services will be called on background thread with response handling on main thread.

Notifications You must be signed in to change notification settings

manann-sseth/iOS-WebService

Repository files navigation

iOS-WebService

Usage

You can show a tutorial for one gesture.

APIParser *service = [APIParser sharedMediaServer];

[service UserRequestWithType:APIGetAllEvents
    parameters:[NSString stringWithFormat:@"userId=%d", userID]
    cookieValue:nil
    customeobject:nil
    block:^(NSError *error, id objects, NSString *responseString, NSString *nextUrl, NSMutableArray *responseArray)
    {
        if (error) {

            //Handle Error
        }
        else {

            if (responseArray.count > 0) {

                //Handle Response Array
            }
            else {

                //Handle null response array
            }
        }
    }];

Author

Dhruvik Rao, dhruvik.rao@gmail.com

License

Copyright (c) 2015 Dhruvik Rao <dhruvik.rao@gmail.com>

About

iOS WebService calling structure with call back response in block. All services will be called on background thread with response handling on main thread.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published