SimplePingHelper icon indicating copy to clipboard operation
SimplePingHelper copied to clipboard

SimplePingHelper with ARC and call by block

Open shiweifu opened this issue 12 years ago • 0 comments

you can use SimplePingHelper like:

  [SimplePingHelper ping:@"www.apple.com"
                callback:^(NSNumber *b){
              if(b.boolValue)
              {
                NSLog(@"%@", @"success");
                [self log:@"success"];

              }
              else
              {
                NSLog(@"%@", @"failure");
                [self log:@"failure"];
              }
  }];

I also add ARC support

shiweifu avatar Dec 03 '13 08:12 shiweifu