Skip to content

Commit

Permalink
Simplify VoiceOver handling of QRadioElement.
Browse files Browse the repository at this point in the history
  • Loading branch information
olgeni committed Apr 2, 2016
1 parent ced2dc9 commit 4f19449
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions quickdialog/QRadioElement.m
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,9 @@ - (UITableViewCell *)getCellForTableView:(QuickDialogTableView *)tableView contr
cell.accessoryType = self.enabled ? UITableViewCellAccessoryDisclosureIndicator : UITableViewCellAccessoryNone;
cell.selectionStyle = self.enabled ? UITableViewCellSelectionStyleBlue : UITableViewCellSelectionStyleNone;
cell.textField.userInteractionEnabled = NO;
cell.textField.accessibilityElementsHidden = YES;
cell.accessibilityTraits = UIAccessibilityTraitButton;
cell.textLabel.accessibilityLabel = [NSString stringWithFormat: @"%@, %@", cell.textLabel.text, cell.textField.text];
[cell setNeedsLayout];
return cell;
}
Expand Down

0 comments on commit 4f19449

Please sign in to comment.