【发布时间】:2011-06-22 07:22:37
【问题描述】:
1.X-Code -> Run -> Run with Performance Tool -> Leaks 我遇到了像责任库这样的内存泄漏:UIKit责任框架:UIKeyBoardInputManagerClassForIn。当我跟踪它时,它并不指向我的代码,而是指向一些框架作品。这是我的代码问题吗?还是有可能从苹果的框架中泄露出来?
【问题讨论】:
-
2.Responsible Library : EventKit 责任框架: +[EKEvent storeClosed:] 当跟踪指向 dyld_stub_objc_msgSend - > int main(int argc, char *argv[]) { NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init]; int retVal = UIApplicationMain(argc, argv, nil, nil);(->100%) [池释放];返回 retVal; }
-
3.责任库:Foundation 责任框架:+[NSAutoReleasePool] 跟踪不指向我的代码。
标签: xcode memory-leaks uikit