public override void RowDeselected(UITableView tableView, NSIndexPath indexPath)
        {
            var item = settings[indexPath.Section];
            SettingsCellType type = (SettingsCellType)item[cellTypeKey];

            if (type == SettingsCellType.Switch)
            {
                setStatusForIndex(false, indexPath.Section);
            }
        }
        public override UITableViewCell GetCell(UITableView tableView, NSIndexPath indexPath)
        {
            UITableViewCell cell = null;

            var item = settings[indexPath.Section];

            SettingsCellType type = (SettingsCellType)item[cellTypeKey];

            if (type == SettingsCellType.Switch)
            {
                cell = TableView.DequeueReusableCell(reuseIdentifierSwitch);
                ((SettingsCell)cell).setTextLabel((string)item[cellTitleKey]);
            }
            else
            {
                cell = TableView.DequeueReusableCell(reuseIdentifierSample);
                cell.TextLabel.Text = (string)item[cellTitleKey];
            }

            return(cell);
        }