我有一个来自 UIDeviceRGBColor 的泄漏。负责的框架是 +[UIColor allocWithZone:]。我没有使用 ARC。
泄漏来自以下方法。
- (void) lAction
{
MKCoordinateRegion mapRegion;
mapRegion.center = mapView.userLocation.coordinate;
mapRegion.span.latitudeDelta = 0.05;
mapRegion.span.longitudeDelta = 0.05;
[mapView setRegion:mapRegion animated: YES];
SettingsViewController *settingsViewController = [[SettingsViewController alloc]
initWithNibName:@"SettingsViewController" bundle:nil];
泄漏来自下一行:
[self presentModalViewController: settingsViewController animated:YES];
然后该方法完成如下:
self.navigationController.navigationBar.tintColor = [UIColor colorWithRed:40.0/255.0
green:43.0/255.0 blue:46.0/255.0 alpha:1.0];
}
有人知道怎么修这个东西吗?谢谢你们!