UIImageView的内存泄漏? [英] Memory leak for UIImageView?

查看:138
本文介绍了UIImageView的内存泄漏?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我执行了以下步骤:

  1. 在Xcode中创建基于视图的iPad应用程序,
  2. 打开.xib文件,添加UIImageView并为其设置图片(200x100图片).
  3. 通过运行>使用性能工具运行>泄漏启动程序

据报道有两个泄漏:

Leaked Object  #   Address Size    Responsible Library Responsible Frame
Malloc 128 Bytes        0x72186d0   128 ImageIO BuildPluginListPurple
Malloc 128 Bytes        0x4712000   128 CoreGraphics open_handle_to_dylib_path

所以......发生了什么事?

So....What is happening?

谢谢

推荐答案

如果在模拟器中进行测试,则应尝试在实际的iPad上运行相同的测试.可能是您看不到那里的泄漏.

If you are testing in the simulator, you should try running the same test on an actual iPad. Odds are that you won't see the leak there.

这篇关于UIImageView的内存泄漏?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆