Quote:
Originally Posted by smasher
|
Thanks for that.
I have enabled NSZombie, and this is the error I get: -
-[MapViewController respondsToSelector:]: message sent to deallocated instance 0x10bc300
This occurs when I click the Back button in my Navigation Bar!
The view it is moving from contains a MapView!
I have narrowed the problem to the following: -
- (void)mapView {
MapViewController *mvController = [[MapViewController alloc] initWithNibName:@"MapView" bundle:[NSBundle mainBundle]];
[mvController setItemLocation:[NSString stringWithFormat:@"%@ %@", [details objectForKey:@"Latitude"], [details objectForKey:@"Longitude"]]];
[self.navigationController pushViewController:mvController animated:YES];
//[mvController release];
}
If I uncomment the [mvController release]; line the app crashed.... Shouldn't mvController be released?
The app works without this line, and I cannot find any leaks!
Thanks