예제 #1
0
        public override UITableViewCell GetCell(UITableView tableView, NSIndexPath indexPath)
        {
            var cell = tableView.DequeueReusableCell (TweetListCell.Key) as TweetListCell;
            if (cell == null)
                cell = new TweetListCell ();

            // TODO: populate the cell with the appropriate data based on the indexPath
            //		cell.DetailTextLabel.Text = "DetailsTextLabel";
            cell.Tweet = _tweets.ElementAt (indexPath.Row);

            return cell;
        }
예제 #2
0
        public override UITableViewCell GetCell(UITableView tableView, NSIndexPath indexPath)
        {
            var cell = tableView.DequeueReusableCell(TweetListCell.Key) as TweetListCell;

            if (cell == null)
            {
                cell = new TweetListCell();
            }

            // TODO: populate the cell with the appropriate data based on the indexPath
            //		cell.DetailTextLabel.Text = "DetailsTextLabel";
            cell.Tweet = _tweets.ElementAt(indexPath.Row);

            return(cell);
        }