简体   繁体   English

滚动tableview时关闭modalViewController时为EXC_BAD_ACCESS

[英]EXC_BAD_ACCESS when dismissing modalViewController while scrolling tableview

I've got a UITableViewController that is presented as a modal view. 我有一个UITableViewController呈现为模式视图。 When I do nothing in the modal and use [self dismissModalViewControllerAnimated:YES]; 当我在模态中什么也不做时使用[self dismissModalViewControllerAnimated:YES]; everything works fine. 一切正常。 But when I dismiss my modal while scrolling the UITableView inside, the application crashes with a EXC_BAD_ACCESS. 但是,当我在滚动UITableView时解散模态时,应用程序崩溃并显示EXC_BAD_ACCESS。

I've already tried NSZombieEnabled but nothing shows up. 我已经尝试过NSZombieEnabled,但是什么也没有出现。 Somebody knows why my tableview-delegates are still being fired after dismissing the view? 有人知道为什么我的tableview委托在关闭视图后仍然被解雇?

如果您释放任何自动释放的对象,请检查modalview控制器的dealloc方法

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM