[英]If my view controller calls deinit(), does that mean that I don't have memory leaks?
如果视图控制器能够调用deinit(),这是否意味着我没有强大的引用周期?
If your view controller's deinit
block runs, it means your view controller isn't involved in a strong retain cycle. 如果您的视图控制器的
deinit
块运行,则意味着您的视图控制器不会参与强大的保留周期。 It doesn't mean your program is completely free of memory leaks. 这并不意味着您的程序完全没有内存泄漏。
If you want to be sure you don't have memory leaks, try using the Leaks instrument in Instruments. 如果要确保没有内存泄漏,请尝试使用Instruments中的Leaks仪器。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.