在cellforRowAtIndexPath表视图委托方法中加载xib文件的EXC_BAD_ACCESS

时间:2011-10-11 10:01:06

标签: iphone uitableview exception xib

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

NSArray *nib = [[NSBundle mainBundle] loadNibNamed:@"CustomCell_Oppurtunaties" owner:self options:nil];

错误是和backtrace一样,

#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 ()

0 个答案:

没有答案