appdelegate dealloc 只会被调用一次?

发布于 2025-01-04 06:44:47 字数 95 浏览 1 评论 0原文

如果我们在 Appdelegate 方法的 dealloc 中释放任何分配的变量,我会在同一个 appdelegate.m 中分配相同的变量 文件,dealloc 会处理它吗?

If we release any allocated variable in dealloc of Appdelegate method, I allocate the same in the same appdelegate.m
file, will the dealloc handle it?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

黑色毁心梦 2025-01-11 06:44:47

是的,每次调用dealloc时它都会处理它。一般只会一次。

Yes, it will handle it every time when will called dealloc. Generally only once.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文