我从这段代码中得到一个泄露的NSCFString。我知道它与NSString有关,但我不明白泄漏是如何发生的。感谢您的帮助提前...基金会NSCFString中的内存泄漏。 NSString创建和发布。仍然泄漏
-(void)reverseGeocoder:(MKReverseGeocoder *)geocoder didFindPlacemark:(MKPlacemark *)placemark{
NSString *pTitle = [[NSString alloc] initWithString:placemark.title];
mapView.userLocation.title = pTitle;
[pTitle release];
}
你是否检查仪器上的泄漏? – Hisenberg
是的,我正在运行一个设备并检查仪器中的泄漏 – iOSDevSF