chrishulbert/SimplePingHelper — pull request #2 by shiweifu (2013-12-03 08:33:39+00:00)
Title: SimplePingHelper with ARC and call by block

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