0

私のコードは

- (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を呼び出すたびに、メモリリークが蓄積されます。

どんなコメンも来て

4

1 に答える 1

0

It's a known bug present in iOS at the moment relating to UIScrollViews. All you can do at the moment is wait for a system update and hope that it is fixed.

Here is some more information: http://openradar.appspot.com/11081198

于 2012-06-12T03:58:04.817 に答える