I can't find the leak on this simple table view.
I can't find the leak on this simple table view.
- Subject: I can't find the leak on this simple table view.
- From: James Cicenia <email@hidden>
- Date: Mon, 2 Mar 2009 19:52:11 -0600
Hello -
I have a table view that I popup. However it is giving me leaks and
something about NSIndexPath is shown in leaks in instruments.
It is leaking upon showing the table view.
I have a mainview --> PopupView --> PopupView2
the PopupView2 is the one giving me the leak upon display.
here is the code:
- (UITableViewCell *)tableView:(UITableView *)tableView
cellForRowAtIndexPath:(NSIndexPath *)indexPath {
static NSString *CellIdentifier = @"MilesCell_ID";
MilesCell *cell =(MilesCell *) [tableView
dequeueReusableCellWithIdentifier:CellIdentifier];
if (cell == nil) {
cell =(MilesCell *) [[[MilesCell alloc]
initWithFrame:CGRectZero reuseIdentifier:CellIdentifier] autorelease];
}
if(indexPath.row == 0){
[[cell numberImageView]setImage:image200];
}else if(indexPath.row==1){
[[cell numberImageView]setImage:image500];
}else if(indexPath.row==2){
[[cell numberImageView]setImage:image1000];
}else if(indexPath.row==3){
[[cell numberImageView]setImage:image1500];
}else if(indexPath.row==4){
[[cell numberImageView]setImage:image2000];
}else if(indexPath.row==5){
[[cell numberImageView]setImage:image2500];
}else if(indexPath.row==6){
[[cell numberImageView]setImage:image5000];
}else if(indexPath.row==7){
[[cell numberImageView]setImage:image1000];
}
return cell;
}
The Item cell inherits from another cell and doesn't override
anything. And that superclass cell doesn't leak.
So how do I track this kind of leak down?
Thanks
James
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden