Objective c 使用CWWiFiClient禁用WiFi
优胜美地10.10中似乎不推荐使用Objective c 使用CWWiFiClient禁用WiFi,objective-c,macos,wifi,osx-yosemite,Objective C,Macos,Wifi,Osx Yosemite,优胜美地10.10中似乎不推荐使用CWInterface,它已被CWWiFiClient取代 在CWInterface中,我通常会使用setPower方法禁用WiFi,但我不知道在CWWiFiClient中有类似的方法 有人知道如何使用cwificlient禁用WiFi吗 谢谢。根据Apple CWInterface和setPower的说法,10.10版中的setPower仍然是最新版本,但刚刚修改过 像这样获取CWInterface实例: let _en: CWInterface! = CWW
CWInterface
,它已被CWWiFiClient
取代
在CWInterface
中,我通常会使用setPower
方法禁用WiFi,但我不知道在CWWiFiClient
中有类似的方法
有人知道如何使用cwificlient
禁用WiFi吗
谢谢。根据Apple CWInterface和setPower的说法,10.10版中的setPower仍然是最新版本,但刚刚修改过
像这样获取CWInterface实例:
let _en: CWInterface! = CWWiFiClient.sharedWiFiClient().interface()
现在您可以使用setPower
方法再次禁用WiFi