상속: UITableViewCell
예제 #1
0
 public override UITableViewCell GetCell(UITableView tableView, NSIndexPath indexPath)
 {
     // request a recycled cell to save memory
     KittenViewCell cell = (KittenViewCell) tableView.DequeueReusableCell (cellIdentifier);
     // if there are no cells to reuse, create a new one
     if ( cell == null )
     {
         cell = new KittenViewCell( UITableViewCellStyle.Default, cellIdentifier );
     }
     return cell;
 }
예제 #2
0
        public override UITableViewCell GetCell(UITableView tableView, NSIndexPath indexPath)
        {
            // request a recycled cell to save memory
            KittenViewCell cell = (KittenViewCell)tableView.DequeueReusableCell(cellIdentifier);

            // if there are no cells to reuse, create a new one
            if (cell == null)
            {
                cell = new KittenViewCell(UITableViewCellStyle.Default, cellIdentifier);
            }
            return(cell);
        }