objective-c - iOS VC push 和 popRootVC VC释放问题
大家讲道理
大家讲道理 2017-04-18 09:15:07
0
2
664

有三个控制器,aVC push到bVC, bVC再push到cVC, 然后cVC popToRootViewController, 只有cVC会走dealloc方法, bVC不会走...

如果我cVC popTo bVC, bVC popTo aVC, 这样c b控制器都走dealloc方法,怎样让popToRootVC 之后,bVC也销毁掉?

大家讲道理
大家讲道理

光阴似箭催人老,日月如移越少年。

reply all(2)
巴扎黑

You need to check whether there is still a reference to bVC somewhere, such as in block or aVC.

大家讲道理

The memory leak in the ARC environment should be caused by a circular reference. Check it. If it is not obvious, look at NSTimer. It may also cause a circular reference

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template