Iphone 来自nib的自定义单元格泄漏

Iphone 来自nib的自定义单元格泄漏,iphone,memory,uitableview,nib,Iphone,Memory,Uitableview,Nib,我有一个UITableViewCell的子类,正在尝试使用它。目前,它确实显示良好的测试,但我得到泄漏的错误控制台 - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { static NSString *CustomCellIdentifier = @"CustomCellIdentifier ";

我有一个UITableViewCell的子类,正在尝试使用它。目前,它确实显示良好的测试,但我得到泄漏的错误控制台

- (UITableViewCell *)tableView:(UITableView *)tableView 
         cellForRowAtIndexPath:(NSIndexPath *)indexPath 
{

    static NSString *CustomCellIdentifier = @"CustomCellIdentifier ";

    LeagueCellNormal *cell = (LeagueCellNormal *)[tableView dequeueReusableCellWithIdentifier: CustomCellIdentifier];
    if (cell == nil)  
    {
        NSArray *nib = [[NSBundle mainBundle] loadNibNamed:@"LeagueCellNormal" 
                                                     owner:self options:nil];
        cell = (LeagueCellNormal *)[nib objectAtIndex:0];

    }
        return cell;
}
错误:-

[Session started at 2009-08-25 06:03:28 +0100.]
2009-08-25 06:03:40.926 MyApp1[1863:5523] *** _NSAutoreleaseNoPool(): Object 0x14b3f70 of class __NSArrayReverseEnumerator autoreleased with no pool in place - just leaking
Stack: (0x305a2e6f 0x30504682 0x3094a1a6 0x1d2d2 0x3050a79d 0x3050a338 0x94be6155 0x94be6012)
2009-08-25 06:03:40.927 MyApp1[1863:5523] *** _NSAutoreleaseNoPool(): Object 0x1492720 of class NSCFArray autoreleased with no pool in place - just leaking
Stack: (0x305a2e6f 0x30504682 0x3094a09c 0x3094a225 0x1d2d2 0x3050a79d 0x3050a338 0x94be6155 0x94be6012)
2009-08-25 06:03:40.930 MyApp1[1863:5523] *** _NSAutoreleaseNoPool(): Object 0x14423b0 of class NSCFArray autoreleased with no pool in place - just leaking
Stack: (0x305a2e6f 0x30504682 0x3094a09c 0x3094a260 0x1d2d2 0x3050a79d 0x3050a338 0x94be6155 0x94be6012)

解决我自己-木偶!看起来我从分离的线程调用了重载数据。然后我在主线程上做了这个,所有的线程都消失了

解决我自己-木偶!看起来我从分离的线程调用了重载数据。然后我在主线程上做了这个,所有的线程都消失了!