Hi,
In the context of an Objective-C, iPhone application, I need to be able to tell whether the iPhone is connected to a wifi network, and if possible listen to changes in this state.
Does anyone know how to do this?
thanks, gabouy
Hi,
In the context of an Objective-C, iPhone application, I need to be able to tell whether the iPhone is connected to a wifi network, and if possible listen to changes in this state.
Does anyone know how to do this?
thanks, gabouy
Look at the Reachability sample provided by Apple in the developer site. It does this.
I'd recommend using the Reachability sample project that Apple provides. It covers the base testing you need to do to check for connectivity.
There is also a good example in the iPhone Developer Cookbook.