Exemple #1
0
        public void DownloadStateDidChange(AssetListTableViewCell cell, AssetDownloadState state)
        {
            var indexPath = TableView.IndexPathForCell(cell);

            if (indexPath == null)
            {
                return;
            }

            TableView.ReloadRows(new NSIndexPath[] { indexPath }, UITableViewRowAnimation.Automatic);
        }
Exemple #2
0
        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);
        }