私のアプリは、UITableview を使用して画像のフィードを表示します。APIは一度に非常に多くの画像しか提供しないため、テーブルビューの最後のセルをLoad More Button
. LoadMoreCell
これを行うために、識別子で呼び出されるカスタムセルを作成しましたLoadCell
私が行う方法を使用しGetCell
て:
public override UITableViewCell GetCell (UITableView tableView, MonoTouch.Foundation.NSIndexPath indexPath)
{
// request a recycled cell to save memory
FeedCell cell = tableView.DequeueReusableCell (cellIdentifier) as FeedCell;
if(indexPath.Row >= tableItems.Count)
{
LoadMoreCell loadCell = tableView.DequeueReusableCell ("LoadCell") as LoadMoreCell;
return loadCell;
}
//Set Date and title
cell.SetInfo (ids[indexPath.Row], userID, tableItems [indexPath.Row]);
cell.SetImage (images[indexPath.Row]);
cell.parent = this.parent;
return cell;
}
これにより、下部に のセルが表示されますが、セルは aの小さい寸法ではなくLoad More Button
と同じ寸法です。FeedCell
LoadMoreCell
これで私の問題が何であるか知っている人はいますか?