我遇到了这个问题:有一个UIViewController,它包含一个UITableView,我在这个Controller中有一个方法,由一个委托执行,它重新加载UITableView。如果我在方法执行时弹出ViewController,我得到以下“EXC_BAD_ACCESS”错误:
#0 0x35df2c98 in objc_msgSend
#1 0x3556b8fc in -[UITableView(UITableViewInternal) _spacingForExtraSeparators]
#2 0x3556b380 in -[UITableView(_UITableViewPrivate) _adjustExtraSeparators]
#3 0x3556b21e in -[UITableView layoutSubviews]
#4 0x355175fa in -[UIView(CALayerDelegate) layoutSublayersOfLayer:]
#5 0x34d8cf02 in -[NSObject(NSObject) performSelector:withObject:]
#6 0x30af4bb4 in -[CALayer layoutSublayers]
#7 0x30af496c in CALayerLayoutIfNeeded
#8 0x30afa1c4 in CA::Context::commit_transaction
#9 0x30af9fd6 in CA::Transaction::commit
#10 0x30af3054 in CA::Transaction::observer_callback
#11 0x34df6a34 in __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__
#12 0x34df8464 in __CFRunLoopDoObservers
#13 0x34df975a in __CFRunLoopRun
#14 0x34d89ec2 in CFRunLoopRunSpecific
#15 0x34d89dca in CFRunLoopRunInMode
#16 0x3222941e in GSEventRunModal
#17 0x322294ca in GSEventRun
#18 0x35540d68 in -[UIApplication _run]
#19 0x3553e806 in UIApplicationMain
#20 0x00002474 in main at main.m:14
我试图释放并且在Controller的dealloc执行时不释放tableView但是我得到了同样的错误。
我希望有人可以帮助我!太棒了!
感谢。