獲取當前連接WiFi的名字

導入類庫 #import <SystemConfiguration/CaptiveNetwork.h>code + (NSString *)getWiFiName { NSString *wifiName = nil; CFArrayRef wifiInterfaces = CNCopySupportedInterfaces(); if (
相關文章
相關標籤/搜索