我看到以下日誌...這段代碼爲什麼調用自動釋放池?
「__NSAutoreleaseNoPool():有沒有到位池自動釋放類UITableViewCellContentView的對象0x58264b0 - 剛剛泄露」
這是一個巨大的釋放池日誌,上面只是其中一個版本日誌,我複製...
我有一個CustomCell根據業務邏輯添加瓷磚本身。但問題是當我打電話創建單元格時,我看到上面的日誌消息。我沒有看到我的代碼有任何問題..有沒有人有任何線索?
- (UITableViewCell *) tableView:(UITableView *)inTableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
{
UnSavedNoteListCell *cell;
NSString *CellIdentifier = [@"Cell_" stringByAppendingString:[NSString stringWithFormat:@"%d", indexPath.row]];
cell = (UnSavedNoteListCell *)[inTableView dequeueReusableCellWithIdentifier:CellIdentifier];
if (cell == nil)
{
NSMutableArray *cellProgressNoteCollection = [self getcellProgressNoteCollectionForLandScape:indexPath];
cell = [[[UnSavedNoteListCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:CellIdentifier cellTiles:cellProgressNoteCollection] autorelease];
cell.backgroundColor = [UIColor clearColor];
[cell setSelectionStyle:UITableViewCellSelectionStyleNone];
}
// cell.textLabel.text = [NSString stringWithFormat:@"%d", rand()];
// cell.textLabel.textColor = [UIColor redColor];
// Configure the cell...
return cell;
}