public override UITableViewCell GetCell(UITableView tableView, NSIndexPath indexPath) { TableOneItem itemByIndex = _listItems[indexPath.Row]; TableViewOneCellXib cell = tableView.DequeueReusableCell(TableViewOneCellXib.Key) as TableViewOneCellXib; if (cell == null) { var view = NSBundle.MainBundle.LoadNib(TableViewOneCellXib.Key, cell, null); cell = Runtime.GetNSObject(view.ValueAt(0)) as TableViewOneCellXib; } cell.UpdateData(itemByIndex); return(cell); }
public void UpdateData(TableOneItem item) { _titleLabel.Text = item.Titile; _textLabel.Text = item.Text; }