Пример #1
0
        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);
        }
Пример #2
0
        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);
        }