Skip to content

SimplePingHelper with ARC and call by block - #2

Open
shiweifu wants to merge 1 commit into
chrishulbert:masterfrom
shiweifu:master
Open

SimplePingHelper with ARC and call by block#2
shiweifu wants to merge 1 commit into
chrishulbert:masterfrom
shiweifu:master

Conversation

@shiweifu

Copy link
Copy Markdown

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 freeto 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

@shiweifu