예제 #1
0
        public UITableViewCell cellForRowAtIndexPath(UITableView tableView, /*cellForRowAtIndexPath*/ NSIndexPath indexPath)
        {
            /*static*/ string CellIdentifier = "CellIdentifier";
            UITableViewCell   cell           = tableView.DequeueReusableCell(CellIdentifier);

            if (cell == null)
            {
                cell = new UITableViewCell/*()WithStyle*/ (UITableViewCellStyle.Default, /*reuseIdentifier*/ CellIdentifier /*autorelease*/);
            }

            cell.TextLabel.Text = (string)items[indexPath.Row];
            cell.SelectionStyle = UITableViewCellSelectionStyle.None;

            return(cell);
        }
예제 #2
0
        public UITableViewCell cellForRowAtIndexPath(UITableView tableView, /*cellForRowAtIndexPath*/ NSIndexPath indexPath)
        {
            /*static*/ string CellIdentifier = "CellIdentifier";
            UITableViewCell cell = tableView.DequeueReusableCell(CellIdentifier);
            if (cell ==  null ) {
                cell = new UITableViewCell /*()WithStyle*/(UITableViewCellStyle.Default, /*reuseIdentifier*/ CellIdentifier /*autorelease*/);
            }

            cell.TextLabel.Text = (string)items[indexPath.Row];
            cell.SelectionStyle = UITableViewCellSelectionStyle.None;

            return cell;
        }