escoz/QuickDialog — Issue #49: QRadioItemElement doesn't show checkmark for when _radioSection.selected = YES
Author: rstephens
Created: 2012-01-25 06:00:31+00:00
State: open

I am new to git and github so this is the best I can do until I learn how to "check-in" my changes.

I modified QRadioItemElement.m to be the following:

- (UITableViewCell *)getCellForTableView:(QuickDialogTableView *)tableView controller:(QuickDialogController *)controller {
UITableViewCell *cell = [super getCellForTableView:tableView controller:controller];
cell.selectionStyle = UITableViewCellSelectionStyleBlue;
NSInteger selectedIndex = _radioElement==nil? _radioSection.selected : _radioElement.selected;
cell.accessoryType = selectedIndex == _index ? UITableViewCellAccessoryCheckmark : UITableViewCellAccessoryNone;
return cell;
}