Could I disconnect to wifi programmatica开发者_运维技巧lly in Cocoa?
For the Mac, see the CoreWLAN Framework. Specifically the disassociate method of CWInterface. On the iPhone (since you tagged this cocoa-touch), I believe this operation is restricted (ie, no supported API exists for applications to configure network connectivity).
精彩评论