How do I get the current access point's MAC address/BSSID? [duplicate]
问题 This question already has an answer here : about stumbler (1 answer) Closed 4 years ago . My iPhone is connected to an access point through a WiFi connection. Does anybody now how I can retrieve this Access Point's MAC address with Objective-C? 回答1: Look here and then here 回答2: It works for me Add SystemConfiguration.framework import < SystemConfiguration/CaptiveNetwork.h> use the below method +(NSString *)currentWifiBSSID { NSString *bssid = nil; NSArray *ifs = (__bridge_transfer id