@implementation ContentView // <-- EXC_BAD_ACCESS on this line
log of self from the breakpoint:
<ContentView: 0x96a4690; frame = (0 0; 0 0); transform = [0, 0, 0, 0, 0, 0]; alpha = 0; autoresize = RM+BM; autoresizesSubviews = NO; layer = (null)>
What’s going on here? Is my object gone?
I wrote this to explain EXC_BAD_ACCESS
http://loufranco.com/blog/files/Understanding-EXC_BAD_ACCESS.html
Basically, it happens because you are using memory that is not mapped to your process. This usually happens because you are accessing released objects or the heap is corrupt. The line of code you show is not executable — it doesn’t result in the “memory use” that could trigger this error.
To help debug it: