Previously, I always used Tony Million "Accessibility" , and it always worked fine. Now I also tried the Apple Reach ability , but every time I try to access, I always get a message about the lack of Internet.
Is there anything else I should check?
Here is what i did
Reachability * reach = [Reachability reachabilityWithHostname:@"www.google.com"];
reach.reachableBlock = ^(Reachability * reachability)
{
dispatch_async(dispatch_get_main_queue(), ^{
blockLabel.text = @"Block Says Reachable";
});
};
reach.unreachableBlock = ^(Reachability * reachability)
{
dispatch_async(dispatch_get_main_queue(), ^{
blockLabel.text = @"Block Says Unreachable";
});
};
[reach startNotifier];
user2043155
source
share