【发布时间】:2011-10-13 16:24:00
【问题描述】:
我从这段代码中得到了一个泄露的 NSCFString。我知道这与 NSString 有关,但是我不明白泄漏是如何发生的。提前感谢您的帮助...
-(void)reverseGeocoder:(MKReverseGeocoder *)geocoder didFindPlacemark:(MKPlacemark *)placemark{
NSString *pTitle = [[NSString alloc] initWithString:placemark.title];
mapView.userLocation.title = pTitle;
[pTitle release];
}
【问题讨论】:
-
您在检查仪器上的泄漏吗??
-
是的,我正在运行设备并检查仪器中的泄漏
标签: iphone xcode cocoa-touch memory-management memory-leaks