public override UITableViewCell GetCell(UITableView tableView, NSIndexPath indexPath) { if (!string.IsNullOrEmpty(TableItems[indexPath.Section].TextViews[indexPath.Row].MidLabelText)) { var secondarycell = tableView.DequeueReusableCell(secondcellIdentifier) as EmbeddedSecondTableCell; TextViews seconditem = TableItems[indexPath.Section].TextViews[indexPath.Row]; secondarycell.UpdateView(seconditem); return(secondarycell); } var cell = tableView.DequeueReusableCell(cellIdentifier) as EmbeddedTableCell; TextViews item = TableItems[indexPath.Section].TextViews[indexPath.Row]; cell.UpdateView(item); return(cell); }
internal void UpdateView(TextViews item) { KeyLabel.Text = item.Label; ValueLabel.Text = item.LabelText; MidLabel.Text = item.MidLabelText; }