简体   繁体   English

如何解决iOS App中的内存泄漏?

[英]How can I solve this memory leak in iOS App?

After analyzing my application with Instruments, the tool tells me I have memory leaks but I do not see why that message if I think I am releasing memory correctly. 在使用Instruments分析了我的应用程序之后,该工具告诉我内存泄漏,但是如果我认为我正确释放了内存,那么我看不到为什么会显示该消息。 Any idea? 任何想法? Thanks in advance. 提前致谢。

在此处输入图片说明

Make sure that syncTask is not retained in enqueue: method. 确保在enqueue:方法中未保留syncTask。

And one more possibility may be if you implement any delegate in TaskQueue make sure your are using assign not strong or retain in property. 还有一种可能是,如果您在TaskQueue中实现任何委托,请确保您使用的不是强分配或保留在属性中。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM