下面的代码片段,导致崩溃:的XCode - 程序崩溃,没有输出到日志
NSLog(@"Exercises:");
for (Exercise *exercise in self.fetchedResultsController.fetchedObjects)
NSLog(@"%@ : %@", exercise.name);
当纠正它不会崩溃:
NSLog(@"Exercises:");
for (Exercise *exercise in self.fetchedResultsController.fetchedObjects)
NSLog(@"%@", exercise.name);
我很好奇,至于为什么当我的应用程序崩溃时,XCode没有向Log Console报告错误?
你在Debug模式下运行吗(Command-Y)? – Zeppomedio 2010-12-12 22:29:31
感谢Zeppomedio,当我以调试模式运行时(Command-Y)我得到: 2010-12-12 14:46:50.598 BB_CD_v2 [387:207]练习:编程接收信号:“EXC_BAD_ACCESS”。所以这一切都很好。 – Boojeboy 2010-12-12 23:03:37