Why is it leaking memory
I am trying to launch a view from a button. When I do this it brings up a memory reference, but I can see why.
CamViewController *dvController = [[CamViewController alloc] initWithNibName:@"Cam_View" bundle:[NSBundle mainBundle]];
dvController.camType = 1;
[self.navigationController pushViewController:dvController animated:YES];
[dvController release];
any ideas?
+2
source to share
1 answer
The problem is most likely in your CamViewController implementation. If I assumed you are creating a bunch of objects in your xib file and they will not be released in dealloc controllers.
It is important to remember that you are responsible for freeing the attached IBOutlet objects in your class.
+2
source to share