Ejemplo n.º 1
0
        public override UITableViewCell GetCell(UITableView tableView, MonoTouch.Foundation.NSIndexPath indexPath)
        {
            var reuseCell = tableView.DequeueReusableCell("SimpleCell");

            if (reuseCell == null)
            {
                reuseCell = new UITableViewCell(UITableViewCellStyle.Default, "SimpleCell");
            }
            var item = _items [(int)indexPath.IndexAtPosition(1)];

            reuseCell.TextLabel.Text = _getter(item);
            return(reuseCell);
        }
Ejemplo n.º 2
0
        public override void RowSelected(UITableView tableView, MonoTouch.Foundation.NSIndexPath indexPath)
        {
            var item = _items [(int)indexPath.IndexAtPosition(1)];

            onSelected(item);
        }