简体   繁体   English

IOS7 - Xcode5 - 没有代码的内存泄漏

[英]IOS7 - Xcode5 - Memory Leaks with NO CODE

first of all, sorry for my english. 首先,对不起我的英语。 Now, i've made a simple app in Xcode 5, with a TabBar Controller and a Navigation Bar Controller embed in it. 现在,我在Xcode 5中创建了一个简单的应用程序,其中嵌入了TabBar控制器和导航栏控制器。 When i run the app with profile i see some leaks (32bytes) that appear when the app goes in background mode. 当我使用配置文件运行应用程序时,我看到应用程序进入后台模式时出现的一些泄漏(32字节)。 This happen only when i use to embed Navigation Controller in Tab Bar Controller, even if i don't write any single line of code. 只有当我使用在栏栏控制器中嵌入导航控制器时才会发生这种情况,即使我没有编写任何单行代码。 in stack trace the only function for the leaks is in main.m. 在堆栈跟踪中,泄漏的唯一功能是在main.m.

How is it possible? 这怎么可能?

The type of leak is: 泄漏的类型是:

Leaked Object   #   Address Size    Responsible Library Responsible Frame
__NSCFString    1   0x17530290  32 Bytes    Foundation  -[NSPlaceholderString initWithFormat:locale:arguments:]

在此输入图像描述在此输入图像描述

Memory leaks dont just happen, Xcode is a derp. 内存泄漏不会发生,Xcode是一个derp。 Turn it off and on again and it will work like a charm. 将其关闭再打开它会像魅力一样工作。

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

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