My app crashes randomly when navigating back in a NavigationController
. Here is what I know:
- It happens randomly (sometimes, I can come back once or twice and if I reload the viewController and press "back" again it will crash)
- It happens even with an empty
ViewController
(I tried to comment out all my code inViewController.h
and.m
and to remove all the outlets links) - Nothing shows up in the debug console, only a
EXEC_BAD_ACCESS
is shown inmain.m
I spent the afternoon on this and tried everything.
I don't include code right now because I have no idea where to look. As I said, it even happens with an empty ViewController
.
Any thoughts or similar experience ?
EDIT:
- Yes I tried to add an exception breakpoint
- I even tried to find some observer issues with Spark debugger.
EDIT 2:
Actually, the ViewControllers
were not that empty. The import on an UIView category was the problem. Check my answer below.