From f1a83512d110ce3f328c3a4232a5b6900f71c9e6 Mon Sep 17 00:00:00 2001 From: kiancheong Date: Tue, 11 Oct 2016 12:31:06 +0800 Subject: [PATCH] Prevents setting cell's accessoryType to UITableViewCellAccessoryNone if the rowDescriptor's required value is true. This fixes the ability to deselect options when using XLFormRowDescriptorTypeSelectorPush. --- XLForm/XL/Controllers/XLFormOptionsViewController.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/XLForm/XL/Controllers/XLFormOptionsViewController.m b/XLForm/XL/Controllers/XLFormOptionsViewController.m index 86e8eeb..8a95d92 100644 --- a/XLForm/XL/Controllers/XLFormOptionsViewController.m +++ b/XLForm/XL/Controllers/XLFormOptionsViewController.m @@ -138,8 +138,8 @@ if ([[self.rowDescriptor.value valueData] isEqual:[cellObject valueData]]){ if (!self.rowDescriptor.required){ self.rowDescriptor.value = nil; + cell.accessoryType = UITableViewCellAccessoryNone; } - cell.accessoryType = UITableViewCellAccessoryNone; } else{ if (self.rowDescriptor.value){