ios - Weird crash while navigating back -
my app crashes randomly when navigating in navigationcontroller
. here know:
- it happens randomly (sometimes, can come once or twice , if reload viewcontroller , press "back" again crash)
- it happens empty
viewcontroller
(i tried comment out code inviewcontroller.h
,.m
, remove outlets links) - nothing shows in debug console,
exec_bad_access
shown inmain.m
i spent afternoon on , tried everything.
don't include code right because have no idea look. said, happens empty viewcontroller
.
any thoughts or similar experience ?
edit:
- yes tried add exception breakpoint
- i tried find observer issues spark debugger.
edit 2: actually, viewcontrollers
not that empty. import on uiview category problem. check answer below.
it's difficult causing without more information, in experience common reason exc_bad_access when tries call selector on deallocated instance. issue can lot easier debug if enable zombie objects.
edit scheme -> diagnostics -> enable zombie objects
now instead of getting bad access exception should more helpful "message sent deallocated instance" error (assuming that's problem), along method being called on class of object.
Comments
Post a Comment