What is the advantage of using Reachability?
问题 What is the advantage of the using Reachability over the code below? I feel that Reachability has a huge amount of code, but if it's better in any way, then I'd use that instead. NSString *connectionString = [[NSString alloc] initWithContentsOfURL:[NSURL URLWithString:@"http://www.google.com"]]; if ([connectionString length] == 0) { //No connection } Now granted, if Google ever went down then this wouldn't work. But there's literally no chance of that happening. What do you think? Thanks! 回答1