public override UITableViewCell GetCell(UITableView tableView, NSIndexPath indexPath) { EditablePhoneTableCell cell = tableView.DequeueReusableCell("PhoneCell") as EditablePhoneTableCell; if (cell != null) { cell.dataIndex = indexPath.Row; } if (cell == null) { cell = new EditablePhoneTableCell("PhoneCell"); cell.dataIndex = indexPath.Row; cell.txtLabel.EditingDidEnd += (sender, e) => { labels [cell.dataIndex] = cell.PhoneLabel; }; cell.txtPhoneNumber.EditingDidEnd += (sender, e) => { numbers [cell.dataIndex] = cell.PhoneNumber; }; } // cell.PhoneLabel = phoneNumbers[indexPath.Row].Label.ToString ().Replace ("_$!<", "").Replace (">!$_", ""); // cell.PhoneNumber = phoneNumbers[indexPath.Row].Value.ToString (); cell.PhoneLabel = labels [indexPath.Row].Replace("_$!<", "").Replace(">!$_", ""); cell.PhoneNumber = numbers [indexPath.Row]; cell.SelectionStyle = UITableViewCellSelectionStyle.None; return(cell); }
public override UITableViewCell GetCell(UITableView tableView, NSIndexPath indexPath) { EditablePhoneTableCell cell = tableView.DequeueReusableCell("PhoneCell") as EditablePhoneTableCell; if (cell == null) { cell = new EditablePhoneTableCell("PhoneCell"); } cell.PhoneLabel = phoneNumbers[indexPath.Row].Label.ToString().Replace("_$!<", "").Replace(">!$_", ""); cell.PhoneNumber = phoneNumbers[indexPath.Row].Value.ToString(); cell.SelectionStyle = UITableViewCellSelectionStyle.None; return(cell); }
public override UITableViewCell GetCell(UITableView tableView, NSIndexPath indexPath) { EditablePhoneTableCell cell = tableView.DequeueReusableCell ("PhoneCell") as EditablePhoneTableCell; if (cell != null) cell.dataIndex = indexPath.Row; if (cell == null) { cell = new EditablePhoneTableCell ("PhoneCell"); cell.dataIndex = indexPath.Row; cell.txtLabel.EditingDidEnd += (sender, e) => { labels [cell.dataIndex] = cell.PhoneLabel; }; cell.txtPhoneNumber.EditingDidEnd += (sender, e) => { numbers [cell.dataIndex] = cell.PhoneNumber; }; } // cell.PhoneLabel = phoneNumbers[indexPath.Row].Label.ToString ().Replace ("_$!<", "").Replace (">!$_", ""); // cell.PhoneNumber = phoneNumbers[indexPath.Row].Value.ToString (); cell.PhoneLabel = labels [indexPath.Row].Replace ("_$!<", "").Replace (">!$_", ""); cell.PhoneNumber = numbers [indexPath.Row]; cell.SelectionStyle = UITableViewCellSelectionStyle.None; return cell; }
public override UITableViewCell GetCell (UITableView tableView, NSIndexPath indexPath) { EditablePhoneTableCell cell = tableView.DequeueReusableCell ("PhoneCell") as EditablePhoneTableCell; if(cell == null) cell = new EditablePhoneTableCell ("PhoneCell"); cell.PhoneLabel = phoneNumbers[indexPath.Row].Label.ToString ().Replace ("_$!<", "").Replace (">!$_", ""); cell.PhoneNumber = phoneNumbers[indexPath.Row].Value.ToString (); cell.SelectionStyle = UITableViewCellSelectionStyle.None; return cell; }