BeerDrinkin.Forms.iOS.CustomRenderers.ImageCellAccessoryRenderer.GetCell C# (CSharp) Method

GetCell() public method

public GetCell ( Xamarin.Forms.Cell item, UITableViewCell reusableCell, UITableView tv ) : UITableViewCell
item Xamarin.Forms.Cell
reusableCell UITableViewCell
tv UITableView
return UITableViewCell
        public override UITableViewCell GetCell(Cell item, UITableViewCell reusableCell,
            UITableView tv)
        {
            var cell = base.GetCell(item, reusableCell, tv);
            switch (item.StyleId)
            {
                case "none":
                    cell.Accessory = UITableViewCellAccessory.None;
                    break;

                case "checkmark":
                    cell.Accessory = UITableViewCellAccessory.Checkmark;
                    break;

                case "detail-button":
                    cell.Accessory = UITableViewCellAccessory.DetailButton;
                    break;

                case "detail-disclosure-button":
                    cell.Accessory = UITableViewCellAccessory.DetailDisclosureButton;
                    break;

                case "disclosure":
                    cell.Accessory = UITableViewCellAccessory.DisclosureIndicator;
                    break;

                default:
                    cell.Accessory = UITableViewCellAccessory.None;
                    break;
            }
            return cell;
        }
    }
ImageCellAccessoryRenderer