why CaptiveNetwork Reference is used
<p>I have to detect wifi networks available and need to connect using  my iPhone Application.</p>

<p>I found this about CaptiveNetwork Reference <a href="http://developer.apple.com/library/ios/#documentation/SystemConfiguration/Reference/CaptiveNetworkRef/Reference/reference.html" rel="nofollow">here</a></p>

<p>Is this API used to detect and connect with wifi?</p>

<p>If this is correct can you advise of other links or other API's that might also accomplish this?</p>
