我使用 dismissViewControllerAnimated:completion:
方法来关闭 View Controller 。但 View Controller 的 -(void) dealloc{}
方法未被调用。最后,我收到了内存警告,应用程序崩溃了。我不知道为什么以及如何解决它。
最佳答案
我发现了这个问题,是因为ARC无法自动释放NSTimer。
关于ios - 为什么解雇ViewControllerAnimated : completion: method can't dealloc view controller,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17524011/