Search code examples
ios3g

iOS prevent given requests on Cellular Data


I am planning my application to perform some requests to remote server on 3G and WiFi, and other requests only on WiFi.

How do I enable/disable requests over 3G?


Solution

  • You can use the Reachability classes to get informations about the current connection / connectivity. Search for Reachability 3.0.