In order to fix the issue about "EXC_BAD_ACCESS", we can set NSZombieEnabled & MallocStackLogging
How to set them in Xcode 4?
1)Product->Edit Scheme...->Run...->EnvironmentVariables.
Of course , the other way is :click Product->Run... when holding on alt and option keys.
2)add NSZombieEnabled,set the value with YES
3)add MallocStackLogging, set the value with YES.
for MallocStackLogging:
shell malloc_history 53395 0x79ceda0
53395 ProcessID
OBJECT ADDRESS 0x79ceda0