protected override UITableViewCell GetOrCreateCellFor(UITableView tableView, MonoTouch.Foundation.NSIndexPath indexPath, object item) { DayCell cell = tableView.DequeueReusableCell(cellId) as DayCell; if(cell == null) cell = new DayCell(cellId); cell.Accessory = UITableViewCellAccessory.DisclosureIndicator; return cell; }
public override UITableViewCell GetCell (UITableView tableView, MonoTouch.Foundation.NSIndexPath indexPath) { DayCell cell = tableView.DequeueReusableCell(cellId) as DayCell; if(cell == null) cell = new DayCell(days[indexPath.Row].ToString ("dddd"), days[indexPath.Row], cellId); else cell.UpdateCell (days[indexPath.Row].ToString ("dddd"), days[indexPath.Row]); cell.Accessory = UITableViewCellAccessory.DisclosureIndicator; return cell; }