iPad 应用程序中的内存级别警告和泄漏
我正在制作一个 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
谁能帮我解决这个关键问题。这对我的项目来说是非常关键的情况。
提前致谢。
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
Can anyone please help me to solve this critical problem. This is very critical situation for my project.
Thanks in advance.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论