diff --git a/quickdialog/QLabelElement.m b/quickdialog/QLabelElement.m index 87b8dfe0..73a28891 100644 --- a/quickdialog/QLabelElement.m +++ b/quickdialog/QLabelElement.m @@ -51,7 +51,7 @@ - (UITableViewCell *)getCellForTableView:(QuickDialogTableView *)tableView contr cell.detailTextLabel.text = [_value description]; cell.imageView.image = _image; cell.accessoryType = _accessoryType != UITableViewCellAccessoryNone ? _accessoryType : ( self.sections!= nil || self.controllerAction!=nil ? UITableViewCellAccessoryDisclosureIndicator : UITableViewCellAccessoryNone); - cell.selectionStyle = self.sections!= nil || self.controllerAction!=nil ? UITableViewCellSelectionStyleBlue: UITableViewCellSelectionStyleNone; + cell.selectionStyle = self.sections!= nil || self.controllerAction!=nil || self.onSelected!=nil ? UITableViewCellSelectionStyleBlue: UITableViewCellSelectionStyleNone; return cell; }