【发布时间】:2017-04-14 10:56:27
【问题描述】:
我在Instruments 中测试了我的project,最后我在UIView 的类别中找到了memory leak:UIView+RSAdditions
以下代码:
- (void)setHeight:(CGFloat)height {
CGRect frame = self.frame;
frame.size.height = height;
self.frame = frame; // this code cause memory leak
}
我也搜索了我的project,在这里发现了一些相同的方法名称:
同样的方法会影响内存泄漏吗?我对memory leak的原因感到困惑。
【问题讨论】:
标签: ios memory-leaks categories xcode-instruments