xamarin チュートリアルと xamarin の UITableView に関するさまざまな投稿を検索しましたが、静的セルを含む UITableView については何も見つかりませんでした。
私が達成しようとしているのは、twitterific アプリのような単純な詳細画面ですが、Nib やストーリーボードはありません (mvvmcross を使用すると、ストーリーボードは利用できず、Nib ファイルは静的 UITableView の使用を妨げます。少なくとも、方法が見つかりませんでした)それ)
さらに、さまざまなソリューションを試した後、次のような結果になりました。
UITableViewController
public override int NumberOfSections(UITableView tableView)
{
return 1;
}
public override int RowsInSection(UITableView tableview, int section)
{
return 1;
}
public override UITableViewCell GetCell(UITableView tableView, NSIndexPath indexPath)
{
UITableViewCell cell = tableView.DequeueReusableCell("test");
if (cell == null)
{
cell = new SejourInfoViewPatientCell();
//cell = new UITableViewCell(UITableViewCellStyle.Subtitle, "test");
}
//cell.TextLabel.Text = "test";
return cell;
}
しかし、現在 mvvmcross バインディングは機能しません。まったく同じバインディングを取得して非静的 UITableViewController で使用すると、すべて正常に動作します
誰かが私を方向に向けることができれば、私はうれしいです