UIDeviceRGBColor泄漏-如何修复? [英] UIDeviceRGBColor leak - how to fix?

查看:371
本文介绍了UIDeviceRGBColor泄漏-如何修复?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用three20库(不确定是否是这个原因),并且在导航控制器的两个视图之间来回移动时出现泄漏.

I am using the three20 library (not sure if this is the cause) and am getting a leak when going back and forth between two views of a navigation controller.

其中一个泄漏的更多详细信息:

More details of one of the leaks:

我唯一能想到的就是在将第二个视图推入堆栈时显示工具栏:

The only think I can think of is that I show the toolbar when it pushes the second view onto the stack:

/**
 * View is going to appear
 *
 * @version $Revision: 0.1
 */
- (void) viewWillAppear:(BOOL)animated {
    [self.navigationController setToolbarHidden:NO animated:animated];
    [super viewWillAppear:animated];
}//end


/**
 * View will disappear
 *
 * @version $Revision: 0.1
 */
- (void) viewWillDisappear:(BOOL)animated {
    [self.navigationController setToolbarHidden:YES animated:animated];
    [super viewWillDisappear:animated];
}//end

对于我的一生,我无法弄清楚这是从哪里来的.扩展的详细信息堆栈跟踪未显示我的任何课程.

For the life of me, I cannot figure out where this is coming from. The extended detail stack trace is not showing any of my classes.

这可能是哪里来的?

推荐答案

如果要在这20个样式表之一中自定义导航栏色调颜色或其他任何颜色,请确保返回的是自动发布的颜色.

If you are customizing the navbar tint color, or any other colors, in one of the three20 stylesheets, make sure you are returning an autoreleased color.

这篇关于UIDeviceRGBColor泄漏-如何修复?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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