有三个控制器,aVC push到bVC, bVC再push到cVC, 然后cVC popToRootViewController, 只有cVC会走dealloc方法, bVC不会走...
如果我cVC popTo bVC, bVC popTo aVC, 这样c b控制器都走dealloc方法,怎样让popToRootVC 之后,bVC也销毁掉?
光阴似箭催人老,日月如移越少年。
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
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