Table image not showing, "Pop an autorelease pool" error

Posted by Graeme on Stack Overflow See other posts from Stack Overflow or by Graeme
Published on 2010-04-30T08:26:25Z Indexed on 2010/04/30 9:57 UTC
Read the original article Hit count: 471

hi,

I have a UITableView which uses the following code to display an image in a Table View cell:

cell.imageView.layer.masksToBounds = YES;
    cell.imageView.layer.cornerRadius = 5.0;

UIImage *image = [UIImage imageNamed:[[color types] stringByTrimmingCharactersInSet:[NSCharacterSet whitespaceAndNewlineCharacterSet]]];
 if ( image ) {
  cell.imageView.image = [image imageScaledToSize:CGSizeMake(50, 50)];
 }

It works fine on the iPhone simulator, but when I try it on a real iPhone the iPhone doesn't show. Instead in the console in debugging mode, I get this error:

attempt to pop an unknown autorelease pool (0x851e00)

Any help would be great, thanks.

© Stack Overflow or respective owner

Related posts about iphone

Related posts about iphone-sdk