Cancelling MFMailComposeViewController causes a memory leak?

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

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.

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控制器”模板时发生了SDK 4.0中的一次。

链接地址: http://www.djcxy.com/p/16912.html

上一篇: 未能将徽章向右对齐

下一篇: 取消MFMailComposeViewController导致内存泄漏?