How do I receive notifications that the connection has changed type (3G, Edge, Wifi, GPRS)
问题 Is there a way to discover whether the current connection is 3G, Edge or WiFi, and receive a notification of this? Or just a way do discover whether the connection is WiFi? 回答1: You should use Apple's Reachability class http://developer.apple.com/library/ios/#samplecode/Reachability/Listings/Classes_Reachability_h.html after implementation you can use this in the delegate: - (void) configureTextField: (Reachability*) curReach { NetworkStatus netStatus = [curReach currentReachabilityStatus];