取消MFMailComposeViewController导致内存泄漏? [英] Cancelling MFMailComposeViewController causes a memory leak?

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

问题描述

我在我正在使用的应用程序中使用MFMailComposeViewController。当用户点击按钮时,会弹出电子邮件表单。

I use MFMailComposeViewController in an app I'm working on now. When user taps on a button, email form pops up.

现在,当我在此过程中使用仪器监视内存时,我看到每次按下取消按钮并显示操作表时,大约2.5 MB内存加起来所有堆中的活字节数和匿名的vm。仅当您点击取消按钮时,才会发生这种情况,当您发送电子邮件时一切正常。

Now when I use instruments to monitor memory during this process I see that every time you push the cancel button and the action sheet appears, about 2.5 mb of memory adds up to live bytes in all heap & anonymous vm. This only occurs if you tap the cancel button, everything runs normally when you send the email.

顺便说一下,我检查了Apple的MessageComposer示例代码此处,它有同样的问题。

Btw I checked Apple's MessageComposer sample code here , it has the same issue.

有谁知道可能是什么原因?

Does anyone know what might be the reason?

推荐答案

听起来像是API中的内存泄漏(UIKit) - 它们很少见,但它们肯定会发生,我记得有一个回复运行标准Masterview Controller模板时发生的SDK 4.0。

Sounds like a memory leak in the API (UIKit) - they are rare but they certainly do occur, I remember reporting one back in SDK 4.0 which occured when running the standard 'Masterview Controller' template.

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

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