public void DownloadStateDidChange(AssetListTableViewCell cell, AssetDownloadState state) { var indexPath = TableView.IndexPathForCell(cell); if (indexPath == null) { return; } TableView.ReloadRows(new NSIndexPath[] { indexPath }, UITableViewRowAnimation.Automatic); }
public override UITableViewCell GetCell(UITableView tableView, NSIndexPath indexPath) { UITableViewCell cell = TableView.DequeueReusableCell(new NSString(AssetListTableViewCell.CellIdentifier)); var asset = AssetListManager.Current.Assets[indexPath.Row]; if (cell == null) { cell = new AssetListTableViewCell(); } if (cell is AssetListTableViewCell) { AssetListTableViewCell assetListCell = (cell as AssetListTableViewCell); assetListCell.Asset = asset; assetListCell.WeakDelegate = this; } return(cell); }