Post

Replies

Boosts

Views

Activity

Capabilities for Location Services
Can anyone explain why I need to provide location service capabilities to get BSSID info for the Wi-Fi network device? Here some notes from CWNetwork header language /*! @property @abstract Returns the basic service set identifier (BSSID) for the Wi-Fi network device, returned as UTF-8 string. @discussion Returns a UTF-8 string using hexadecimal characters formatted as XX:XX:XX:XX:XX:XX. @note BSSID information is not available unless Location Services is enabled and the user has authorized the calling app to use location services. @seealso CLLocationManager / @property(readonly, nullable) NSString *bssid NS_AVAILABLE_MAC(10_6);
6
0
2.1k
Mar ’21
Memory leak for CLLocationManager
Can someone explain to me why this code is causing a memory leak if I try to analyze it using the "Instrument" tool? I would be grateful if someone could explain how to get rid of this leak. BTW: ARC is enabled 	NSOperationQueue* queue = [[NSOperationQueue alloc] init]; 	[queue addOperationWithBlock:^{ 		CLLocationManager* manager = [[CLLocationManager alloc] init]; 		(void)manager; 	}]; 	[queue waitUntilAllOperationsAreFinished];
0
0
764
Jan ’21