If the code does inside of tableView:cellForRowAtIndexPath
[cell.imageView setImageWithURL:
[NSURL URLWithString:
[NSString stringWithFormat:
@"http://www.mysite.com/images/pic%i.png",
indexPath.row % 12]]];
with no placeholder, the image won't show? (if a placeholder is used, then it will show).
I tried setting cell.imageView.frame = CGRectMake(0, 0, 300, 300);
beforehand and it still won't show it. If I use the longer version setImageWithURL:placeholderImage:success:failure:
and use a placeholder of nil
, and use in the success block [cell setNeedsLayout];
, then the image will show (but cannot be contained in the 300x300 box if cell.imageView.frame = CGRectMake(0, 0, 300, 300);
is used before calling setNeedsLayout
It may be 400 x 300 or 500 x 300 depending on image width). But what about the short form -- can it be made to work?