Reputation: 5
I'm still learning XCode with only the net as my teacher.
I have 4 tab item which worked previously. Now 1 of them is causing my app crash. I've tried to create breakpoint at the start of my failing tab's viewcontroller. But it's still throwing error message.
I search the web about the message's meaning and it may cause by deallocate objects. The message is:
"Thread 1: EXC_BAD_ACCESS (code=2, address=0x.....)"
Please give me a clue how to find my problem's source...kind of lost here.
Here is screenshot:
Upvotes: 0
Views: 663
Reputation: 2681
The easiest way to debug these errors is with NSZombies, which will show you where/what error is occurring. To do this go to the "product" menu, then select "edit scheme". Go to "run yourApp.app", then go to "arguments". Add NSZombieEnabled to "environment variables" and set value to YES. Run your app again and the error should become clear.
Upvotes: 3