iPhone 应用程序崩溃 - NSZombie 输出问题

标签 iphone objective-c ios xcode nszombieenabled

当我使用 popViewController 时,我的应用程序崩溃了。使用 NSZombie 时我得到以下信息:

2011-07-15 13:20:03.334 Question[27412:207] *** -[CFString release]: message sent to deallocated instance 0x4c8a090

我不完全确定如何解释这一点或如何找到所引用的实例...

当我添加以下行时,应用程序崩溃:

-(void) finishQuestionnaire:(id)sender{
    //go back to main manual
    [self.navigationController popViewControllerAnimated:YES];
}

我不认为这是问题,我认为无论加载什么都是问题......

最佳答案

我遇到了类似的问题,我花了一整天的时间来解决这个错误......在我的例子中,有一个像
这样的字符串 str = [[NSString alloc] initWithString:@"a string"];

然后我就变了

str = [NSString stringWithFormat:@"%@",aVarible];

问题已经解决了...

关于iPhone 应用程序崩溃 - NSZombie 输出问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6706884/

相关文章:

iphone - 创建具有多个值的动态 NSMutableDictionary 查询

objective-c - 当只设置了一个 IBAction 时,如何识别代码中的 UISwitch 实例?

ios - 重构圈复杂度大于 10 的 switch 语句

iOS : Bypass the splash screen

iphone - 使用 NSTimer 的序列动画

ios - 使用 HealthKit 在医疗急救卡上写笔记

objective-c - 将父类的实例转换为其子类

ios - 可以向上滚动具有几行的 Swift TableView

ios - Urban Airship : Error "Failed to associate named user with status: 403"

iphone - 如何从 NSMutableArray iPhone 应用程序中查找特定对象?