Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/iphone/35.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Iphone 在cellforRowAtIndexPath表视图委托方法中加载xib文件时EXC\u访问错误_Iphone_Uitableview_Exception_Xib - Fatal编程技术网

Iphone 在cellforRowAtIndexPath表视图委托方法中加载xib文件时EXC\u访问错误

Iphone 在cellforRowAtIndexPath表视图委托方法中加载xib文件时EXC\u访问错误,iphone,uitableview,exception,xib,Iphone,Uitableview,Exception,Xib,在多次执行这行代码之后,比如说执行了10次之后,我在这行代码上收到了EXC_BAD_ACCESS错误。此行位于表视图委托方法中,该方法具有从给定xib文件加载的自定义单元格 NSArray *nib = [[NSBundle mainBundle] loadNibNamed:@"CustomCell_Oppurtunaties" owner:self options:nil]; 错误为,回溯如下所示 #0 0x32d98f1c in objc_msgSend () #1 0x358da15

在多次执行这行代码之后,比如说执行了10次之后,我在这行代码上收到了EXC_BAD_ACCESS错误。此行位于表视图委托方法中,该方法具有从给定xib文件加载的自定义单元格

NSArray *nib = [[NSBundle mainBundle] loadNibNamed:@"CustomCell_Oppurtunaties" owner:self options:nil];
错误为,回溯如下所示

#0  0x32d98f1c in objc_msgSend ()
#1  0x358da150 in _UIView ()
#2  0x358da040 in -[UIView(Hierarchy) _makeSubtreePerformSelector:withObject:withObject:copySublayers:] ()
#3  0x358da080 in -[UIView(Hierarchy) _makeSubtreePerformSelector:withObject:withObject:copySublayers:] ()
#4  0x358da080 in -[UIView(Hierarchy) _makeSubtreePerformSelector:withObject:withObject:copySublayers:] ()
#5  0x358d9f38 in -[UIView(Hierarchy) _makeSubtreePerformSelector:withObject:] ()
#6  0x358f81dc in -[UIView(Hierarchy) removeFromSuperview] ()
#7  0x359af870 in -[UIScrollView removeFromSuperview] ()
#8  0x35900180 in -[UIView dealloc] ()
#9  0x374ffd7a in -[NSObject(NSObject) release] ()
#10 0x358f8230 in -[UIView(Hierarchy) removeFromSuperview] ()
#11 0x35900180 in -[UIView dealloc] ()
#12 0x359afffc in -[UIScrollView dealloc] ()
#13 0x374ffd7a in -[NSObject(NSObject) release] ()
#14 0x3516f7f4 in __delayedPerformCleanup ()
#15 0x3754d526 in CFRunLoopTimerInvalidate ()
#16 0x375522ac in __CFRunLoopDoTimer ()
#17 0x37521a90 in __CFRunLoopRun ()
#18 0x3752150a in CFRunLoopRunSpecific ()
#19 0x37521418 in CFRunLoopRunInMode ()
#20 0x33e76d24 in GSEventRunModal ()
#21 0x3591d57c in -[UIApplication _run] ()
#22 0x3591a558 in UIApplicationMain ()

某处引用无效。你试过运行僵尸仪器吗?您可能会对负责的对象获得更好的分辨率。是的,我已使用NSZombie Enabled运行代码。它给出了[UIView是类的];消息已发送到解除分配的实例。