Hi, every dear friends I'm using Instruments to monitor memory usage. I notice that memory always increase and not release anymore on my UITableViewController. I don't understand why. Following I list my codes
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
int row = [indexPath section];
static NSString *CellIdentifier = @"ApplicationCell";
BookCell *cell = (BookCell *)[tableViewdequeueReusableCellWithIdentifier:CellIdentifier];
if(cell == nil) {
[[NSBundle mainBundle] loadNibNamed:@"BookCell" owner:self options:nil];
cell = bookCell;
self.bookCell=nil;
}
Book *book = [books objectAtIndex:row];
cell.selectionStyle = UITableViewCellSelectionStyleNone;
cell.bookNameLabel.text = book.author;
cell.bookPriceLabel.text = book.price;
cell.accessoryType=UITableViewCellAccessoryDisclosureIndicator;
return cell;
}