Adds methods to UIImageView supporting asynchronous web image loading:
using SDWebImage;
...
const string CellIdentifier = "Cell";
public override UITableViewCell GetCell (UITableView tableView, NSIndexPath indexPath)
{
UITableViewCell cell = tableView.DequeueReusableCell (CellIdentifier) ??
new UITableViewCell (UITableViewCellStyle.Default, CellIdentifier);
// Use the SetImage extension method to load the web image:
cell.ImageView.SetImage (
url: new NSUrl ("http://db.tt/ayAqtbFy"),
placeholder: UIImage.FromBundle ("placeholder.png")
);
return cell;
}
It provides:
UIImageView and UIButton extension methods adding web image loading and cache management.