如何解决分配问题? [英] How to fix Allocations problem?

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

问题描述

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

I see this problem in instruments tool but dont know where is the problem. There are no leaks reports

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

when I followed the links I found some problems (image 2&3&4) is these a leak or what? I think I am doing the same mistakes everywhere in the code..but dont know what

推荐答案

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

I can see a couple of leaks from looking at your code:


  • activityIndi​​cator,你永远不会释放它。

  • self.conn = [NSURLConnection alloc] ...它会导致泄漏,取出conn背后的自我。 (假设你的二传手正在保留)

  • UILabel,你永远不会释放它。

试试这个并告诉我。

这篇关于如何解决分配问题?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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