简体   繁体   English

关于视图控制器的数据保留Objective-C

[英]About data retention objective-c for view controllers

I was wondering. 我在想。 If I have a view controller that contains various other classes that have buttons and labels and arrays. 如果我有一个视图控制器,它包含具有按钮,标签和数组的各种其他类。 And I release the view controller will everything under it be released as well? 我释放了视图控制器,它下面的所有东西也会被释放吗? I'm trying to make sure that I take care of everything as it is created. 我正在尝试确保在创建过程中我会照顾好一切。 But I was just wondering if this is also possible. 但是我只是想知道这是否还可能。 Thanks. 谢谢。

If you follow the standard memory management rules, then everything will be OK. 如果您遵循标准的内存管理规则,则一切正常。

Developer docs explain it all. 开发人员文档对此进行了解释。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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