Hi,
I'm trying to use the component SDWebImage, but i have a problem...
I have this code
public override UITableViewCell GetCell (UITableView tableView, MonoTouch.Foundation.NSIndexPath indexPath) { TopReceitasCell cell = tableView.DequeueReusableCell (cellIdentifier) as TopReceitasCell; if (cell == null) cell = new TopReceitasCell ((NSString)cellIdentifier);
TopReceitaRow currentcell = (Data[indexPath.Row]) as TopReceitaRow;
UIImage imagemFavorito = new UIImage ();
if (currentcell.Favorita) {
imagemFavorito = UIImage.FromBundle ("coracao.png");
} else {
imagemFavorito = UIImage.FromBundle ("coracaovazio.png");
}
if (ranking) {
cell.rankingView.Hidden = false;
cell.rankingView.Image = UIImage.FromBundle ("bolatop.png");
cell.rankingLabel.Text = (indexPath.Row + 1).ToString() + "º";
} else {
cell.rankingView.Hidden = true;
}
cell.headingLabel.Text = currentcell.Nome;
cell.favoritoView.Image = imagemFavorito;
cell.subheadingLabel.Text = currentcell.Votos;
cell.subsubheadingLabel.Text = currentcell.Chef;
// cell.UpdateCell (currentcell.Nome, currentcell.Votos, currentcell.Chef, currentcell.NomeImagem,(indexPath.Row + 1).ToString(),imagemFavorito,ranking,currentcell.UrlImagem); if (!File.Exists (Environment.GetFolderPath (Environment.SpecialFolder.MyDocuments) + @"/petisco/images/receitas/thumbnails/" + currentcell.NomeImagem)) {
cell.imageView.SetImage (new NSUrl (currentcell.UrlImagem + currentcell.NomeImagem), UIImage.FromBundle ("Images/ReceitaDefault.png"));
} else {
cell.imageView.Image = UIImage.FromFile (
Environment.GetFolderPath (Environment.SpecialFolder.MyDocuments)
+ @"/petisco/images/receitas/thumbnails/" + currentcell.NomeImagem);
}
return cell;
}
}
The problem is that the first time you download images only loads the last image. If re-enter later are all already loaded.
Does anyone know why?