这个方法在OS X上使用,正常
+ (NSString *)ssid {
//CWWiFiClient * client = [CWWiFiClient sharedWiFiClient]; //os x 10.10.0
CWInterface * interface = [CWInterface interface];
// interface = [client interface]; //os x 10.10.0
return interface.ssid;
}
这个方法在OS X上使用,正常
+ (NSString *)ssid {
//CWWiFiClient * client = [CWWiFiClient sharedWiFiClient]; //os x 10.10.0
CWInterface * interface = [CWInterface interface];
// interface = [client interface]; //os x 10.10.0
return interface.ssid;
}