线程1:EXC\u错误访问(代码=1,地址=)ios
我在iOS模拟器(6和7)上一直面临这个问题。尝试重置手机,但出现相同问题 加载其他视图控制器时出现此错误线程1:EXC\u错误访问(代码=1,地址=)ios,ios,nszombie,Ios,Nszombie,我在iOS模拟器(6和7)上一直面临这个问题。尝试重置手机,但出现相同问题 加载其他视图控制器时出现此错误 # Event Type ∆ RefCt RefCt Timestamp Responsible Library Responsible Caller 0 Malloc +1 1 00:33.396.540 UIKit UINibDecoderDecodeObjectForValue 1 Retain +1 2 00:33.397.009
# Event Type ∆ RefCt RefCt Timestamp Responsible Library Responsible Caller
0 Malloc +1 1 00:33.396.540 UIKit UINibDecoderDecodeObjectForValue
1 Retain +1 2 00:33.397.009 UIKit -[UIRuntimeConnection initWithCoder:]
2 Retain +1 3 00:33.397.047 UIKit UINibDecoderDecodeObjectForValue
3 Retain +1 4 00:33.397.064 UIKit UINibDecoderDecodeObjectForValue
Retain/Release (2) 00:33.397.537 UIKit -[UIViewController setView:]
6 Retain +1 5 00:33.397.548 UIKit -[UINib instantiateWithOwner:options:]
7 Release -1 4 00:33.397.592 UIKit -[UINibDecoder finishDecoding]
Release (2) -2 00:33.397.647 UIKit -[UINibDecoder finishDecoding]
10 Release -1 1 00:33.397.712 UIKit -[UIRuntimeConnection dealloc]
11 Release -1 0 00:33.409.138 UIKit _UIApplicationHandleEvent
12 Zombie -1 00:35.524.392 UIKit ___updateViewDependenciesForConstraint_block_invoke_0
已尝试探查器,僵尸出现以下错误,但无法进一步处理。有人能指导下一步吗
已将Objective-C消息发送到解除分配的UIView
对象(僵尸),地址为:0xbede440
updateViewDependenciesForConstraint_block_invoke_0+0x4d"
+0x3f movl 2704706(%edi), %ecx
+0x45 movl %eax, 8(%esp)
+0x49 movl %ecx, 4(%esp)
+0x4d movl %esi, (%esp)
+0x50 calll "DYLD-STUB$$objc_msgSend"
+0x55 addl $16, %esp
+0x58 popl %esi`enter code here`
+0x59 popl %edi
+0x5a popl %ebp
+0x5b ret
+0x5c nopl (%eax)
示例代码
#pragma mark UITableViewDelegate
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)tableIndexPath {
//Logic for validation
XXXXXXXXXXx
[self performSegueWithIdentifier:@"ADDXXXX" sender:self];
return;
}
-(void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender{
if ([[segue identifier] isEqualToString:@"ADDXXXX"]){
ADDXXXX *myVC = [segue destinationViewController];
myVC.setXXX
NSLog(@"INIT %p", self);
}
}
好的,我们可以通过在堆栈溢出中引用这个线程来解决它。谢谢大家的回复
提供更多信息-尝试了以上步骤后得出了此僵尸声明。需要帮助来理解和解决我的问题-更新了我的问题的细节。打开另一个视图控制器时出错。您可以在显示另一个视图控制器的位置发布代码吗