我不知道为什么 viewcontroller 的 dealloc 没有调用
请查看代码片段。
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
{
[tableView deselectRowAtIndexPath:indexPath animated:YES];
SaleItemsVC *itemsObj = [[SaleItemsVC alloc] initWithNibName:@"SaleItemsVC" bundle:nil];
[self.navigationController pushViewController:itemsObj animated:YES];
EventSingleEntity *entityobj=(EventSingleEntity*)[arrSales objectAtIndex:indexPath.row];
itemsObj.eveintEntityRef=entityobj;
[itemsObj loadProductsOfEventId:entityobj.event_id];
itemsObj.EventTitle.text=entityobj.name;
itemsObj.EventEndDate.text=entityobj.end;
SalesCell *cell=(SalesCell*)[tableView cellForRowAtIndexPath:indexPath];
itemsObj.eventImage=cell.imgCenter.image;
[itemsObj release];
}