My app has been rejected in the Apple app-store.
To fix this, it must use only WiFi and not cellular network connection when the user is using the application. The application uses UIWebView — how can we go about implementing this restriction?
Any help will be appreciated,
Thanks!
Take a look at the Reachability example from Apple.
With that, you can query the device about the current network status, so you can know if Wifi is available, or if a connection will need cellular network. In the last case, you may display an alert, and prevent your UIWebView to load the data.
EDIT
If you have imported the reachability class into your project, and added the required framework(s), here’s an example. This will test for an available WiFi connection: