简体   繁体   中英

Removing a UITabBarController's view causes an EXC_BAD_ACCESS exception

I'm trying to remove a UITabBarController from a window in my app by calling removeFromSuperview on the controller's view after adding it to the window previously. However when i do so and after it deallocates all the view controllers that are on the bar successfully, i get an EXC_BAD_ACCESS signal after an autorelease pool is drained. by method swizzling i've found out that it happens after something called UITableViewRowData has its dealloc method called. I'm wondering if there's a bug when the more view controller is attempting to be deallocated. Has anyone else ever run into this problem?

您很可能会发布您不应该发布的内容,如果没有一些示例代码就无法真正说出什么

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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