iPhone在UITextfield文本上泄漏 [英] iPhone Leak on UITextfield text

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

问题描述

Instruments工具说这是一个泄漏,但我不知道为什么有任何想法吗?

Instruments tools says this is a leak but I can't figure out why, any ideas?

推荐答案

请确保您要在dealloc(或某个地方)中释放 self.variables 属性.另外,请确保您的 Variable 类正在释放 Variable 类的dealloc中的 variableValues 属性.

Make sure you are releasing self.variables property in your dealloc (or somewhere). Also, ensure that your Variable class is releasing variableValues property in the Variable class's dealloc.

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

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