之前转了别人的一篇调试iPhone中的EXC_BAD_ACCESS错误的文章。很不幸,今天又遇到这个错误了,没按照这个设置,调了好半天,终于发现问题了:.h文件里的property在.m文件中没有实现。这种情况下XCode不报错,连警告也没有,有点不好调试啊。可能还是刚学吧,经验不足啊。。。

阅读全文

症状:iPhone Simulator已经启动,显示正在运行,但是却看不见界面。

解决方法:删除当前用户目录下的~/Library/Preferences/com.apple.iphonesimulator.plist文件,重启iPhone Simulator。

阅读全文

http://www.codza.com/how-to-debug-exc_bad_access-on-iphone

EXC_BAD_ACCESS. Debugging this one is on par with figuring out why the wife says “not tonight, honey.” And they are equally unfortunate situations.

Let’s see what we can do about EXC_BAD_ACCESS.

EXC_BAD_ACCESS happens when a message is sent to an object that has already been released. By the time the error is caught, the call stack is usually gone especially if dealing with multiple threads.

阅读全文