public override UITableViewCell GetCell(UITableView tableView, NSIndexPath indexPath) { NSString name = new NSString("TableCell"); var cell = tableView.DequeueReusableCell(name) as ReviewCellView; if (cell == null) { cell = new ReviewCellView(name); } cell.UpdateCell(Reviews[indexPath.Row]); cell.SetNeedsDisplay(); return(cell); }
public override UITableViewCell GetCell(UITableView tableView, NSIndexPath indexPath) { ReviewCellView cell = null; try { NSString name = new NSString("TableCell"); cell = tableView.DequeueReusableCell(name) as ReviewCellView; if (cell == null) { cell = new ReviewCellView(name); } cell.UpdateCell(Reviews[indexPath.Row]); cell.SetNeedsDisplay(); } catch (Exception ex) { LoggingClass.LogError(ex.ToString(), screen, ex.StackTrace); } return(cell); }