Skip to content

Conversation

@shiweifu
Copy link

@shiweifu shiweifu commented Dec 3, 2013

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant