断开与wifi [英] disconnect to wifi progammatically

查看:147
本文介绍了断开与wifi的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我可以在可可中断地连接到wifi吗?

Could i disconnect to wifi progammatically in cocoa ?

推荐答案

对于Mac,请参阅CoreWLAN框架。特别是 CWInterface的关联方法。在iPhone上(因为你标记了这个可可触摸),我相信这个操作是有限的(即没有支持的API为应用程序配置网络连接)。

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).

这篇关于断开与wifi的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆