iPad 应用程序中的内存级别警告和泄漏

发布于 2024-11-09 19:12:03 字数 636 浏览 2 评论 0原文

我正在制作一个 iPad 应用程序,其中必须制作两个视图控制器,然后在视图中动态添加 UIButton、UIImageView、Video、Audio、WebView、PooverView,并使用导航视图控制器的 PushViewController / Popviewcontroller 方法在两个视图之间连续导航。

我还在 viewDidUnload() 方法中管理所有 IBOutlet 使其空闲,并根据苹果的标准管理 dealloc() 方法。我会在需要的地方释放每个创建的对象。但是,当在视图之间连续执行超过 100 次推送/弹出操作时,我收到内存级别 2 警告。在这里,我附上了我在 iPad 设备中发现的泄漏信息。并且没有指定应用程序中存在泄漏的位置,但我收到的泄漏很少,如下所示:

(1)UIControlTargetAction (2) 通用Block-16 (3)_NSArrayM (4)UI按钮内容 (5) UIButtonLabel (6) 通用区块-96 (7) _NSCFDictionary

Memory Leak using Leaks tool in XCode

谁能帮我解决这个关键问题。这对我的项目来说是非常关键的情况。

提前致谢。

I am making one iPad application in which I have to make two view controller and then adding UIButton, UIImageView, Video, Audio, WebView, PooverView in the view dynamically and navigate between two views continuously using pushViewController / Popviewcontroller methods of navigation view controllers.

I have also manage all the IBOutlet to be free in viewDidUnload() method and also managed the dealloc() method as per the apple's standard. Every created object I am releasing wherever required. But I am getting memory level 2 warning when doing push/pop between view more than 100 times continuously. And here I attached the leaks I am getting in iPad device. And it is not specified where in the application leaks exists but I am getting few leaks stated as follows:

(1) UIControlTargetAction
(2) GeneralBlock-16
(3) _NSArrayM
(4) UIButtonContent
(5) UIButtonLabel
(6) GeneralBlock-96
(7) _NSCFDictionary

Memory Leak Using Leaks tool in XCode

Can anyone please help me to solve this critical problem. This is very critical situation for my project.

Thanks in advance.

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

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

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文