当我按下 MKUserTrackingBarButtonItem 来跟踪用户位置然后离开视图时,就会出现问题。
Profiler 显示僵尸:
[CLLocationManager onClientEventLocation]
我没有 CLLocationManager但MKMapView,我在退出时将其设置为 nil :
- (void)viewDidUnload
{
[self setMapToolbar:nil];
mapView.delegate = nil;
[self setMapView:nil];
[super viewDidUnload];
}