Inheritance: UITableViewCell
 public override UITableViewCell GetCell(UITableView tableView, NSIndexPath indexPath)
 {
     var cell = tableView.DequeueReusableCell("CustomCell1_ID") as CustomCell1;
     
     if (cell == null)
     {
         cell = new CustomCell1();
         var views = NSBundle.MainBundle.LoadNib("CustomCell1", cell, null);
         cell = Runtime.GetNSObject( views.ValueAt(0) ) as CustomCell1;
     }
     
     cell.SetupCell(indexPath);
     
     return cell;
 }
Example #2
0
            public override UITableViewCell GetCell(UITableView tableView, NSIndexPath indexPath)
            {
                var cell = tableView.DequeueReusableCell("CustomCell1_ID") as CustomCell1;

                if (cell == null)
                {
                    cell = new CustomCell1();
                    var views = NSBundle.MainBundle.LoadNib("CustomCell1", cell, null);
                    cell = Runtime.GetNSObject(views.ValueAt(0)) as CustomCell1;
                }

                cell.SetupCell(indexPath);

                return(cell);
            }