如何解决分配问题?

时间:2011-08-06 17:42:53

标签: iphone ios ios4

我在乐器工具中看到了这个问题,但不知道问题出在哪里。没有泄漏报告

当我按照链接时发现一些问题(图2& 3& 4)这些是泄漏还是什么?我想我在代码中到处都是同样的错误..但是不知道是什么

enter image description here

enter image description here

enter image description here

enter image description here

enter image description here

2 个答案:

答案 0 :(得分:1)

似乎有些东西正在分配大量的Objective-C字符串。单击“CFString”类别名称旁边的箭头,查看在NSString上调用alloc函数的内容。

答案 1 :(得分:1)

我可以通过查看您的代码看到一些漏洞:

  • activityIndi​​cator,你永远不会释放它。
  • self.conn = [NSURLConnection alloc] ...它会导致泄漏,取出conn背后的“自我”。 (假设你的二传手保留)
  • UILabel,你永远不会释放它。

试试并告诉我。

相关问题