【发布时间】:2011-05-19 20:45:30
【问题描述】:
我已经在我的 tableview 单元格的 setBackground 方法中分配了一个 UIImageView,如下所示:
[cell setBackgroundView:[[UIImageView alloc]initWithImage:rowBackground]];
当我在 XCode 4 中运行分析时,它会将这一行突出显示为可能的内存泄漏。我如何释放这个 UIImageView,因为我没有从发布调用中获得引用的指针?
【问题讨论】:
标签: iphone memory-leaks uiimageview release