【发布时间】:2012-06-12 02:48:00
【问题描述】:
我的密码是
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
{
NSString *CellIdentifier1 = [NSString stringWithFormat:@"SimpleCell"];
UITableViewCell *cell1 = [tableView dequeueReusableCellWithIdentifier:nil];
if (cell1 == nil) {
cell1 = [[[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:CellIdentifier1] autorelease];
}
return cell1;
}
这总是导致 libsystem_c.dylib mallic 内存泄漏 48 字节。 并且每次调用reloadData都会累积内存泄漏。
欢迎大家交流
【问题讨论】:
标签: ios