Reachability Guide for iOS
问题 Has anyone found a halfway decent guide to implementing Reachability on iOS? 回答1: I have implemented Reachability like this. Download https://developer.apple.com/library/content/samplecode/Reachability/Introduction/Intro.html and add Reachability.h and .m to your project. Add the SystemConfiguration framework to your project. #import "Reachability.h" where you want to use it. Use this code. -(BOOL)reachable { Reachability *r = [Reachability reachabilityWithHostName:@"enbr.co.cc"];