I’m struggling to find what’s going wrong with my code. I’m trying to dismiss a UITableViewController using delegate but getting a EXC_BAD_ACCESS.
The UITableViewController is called (modal segue) from the root view controller of my application. When the rootViewController try to dismiss the UITableViewController everything seems to be all right because the rootViewController view is presented but after a milisecond the error arise.
- (void) dismissFormAViewController: (FormAViewController*) vc{
[vc dismissViewControllerAnimated:YES completion:^{
NSLog(@"complete.");
}];
}
- I can see the string Complete on my console.


typically this means that you are accessing some memory that isn’t a valid object anymore,
to debug turn on zombies in your run scheme, this will give you at least the class that is being accessed…
Then if it is not obvious, you can back track with malloc logging