ISNetwork 0.0.3

ISNetwork 0.0.3

TestsTested
LangLanguage Obj-CObjective C
License MIT
ReleasedLast Release Dec 2014

Maintained by Yosuke Ishikawa.



ISNetwork 0.0.3

  • By
  • Yosuke Ishikawa

Requirements

  • iOS 5.0 or later.
  • ARC

Files

  • ISNetwork/
    ISNetwork objects.

  • ISNetworkTests/
    unit test objects.

  • DemoApp/
    objects for sample application.

Usage

  • add files in ISNetwork/ and NSDictionary-URLQuery/ to your xcode project.
  • import ISNetwork
#import "ISNetwork.h"
  • set up NSURLRequest
NSURL *URL = [NSURL URLWithString:@"http://www.github.com"];
NSURLRequest *reqeust = [NSURLRequest requestWithURL:URL];
  • send request
[ISNetworkClient sendRequest:request
                     handler:^(NSHTTPURLResponse *response, id object, NSError *error) {
                         if (error || response.statusCode != 200) {
                             // error
                             return;
                         }
                         // completion
                     }];

non-ARC support

use previous version.