switch to different mode of network in iphone
<p>I am making an app where the user taps on a button , then if he is already in the cellular network , then switches to "wifi" network .</p>

<p>If the user is in the "wi-fi" network , then switches to "cellular" network. 
But how to detect the type of network ?
and how to detect different <strong>kinds</strong> of networks available ?</p>
