Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix bug with settings store and MultiValueSpecifier where value does …

…not get updated
  • Loading branch information...
commit 03482e715ecfe2f017cde5b07599f2ff047f42a5 1 parent 23e311c
Marc-Etienne M.Léveillé authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  InAppSettingsKit/Controllers/IASKAppSettingsViewController.m
View
3  InAppSettingsKit/Controllers/IASKAppSettingsViewController.m
@@ -570,7 +570,7 @@ - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath
[newItemDict addEntriesFromDictionary: [_viewList objectAtIndex:kIASKSpecifierValuesViewControllerIndex]]; // copy the title and explain strings
targetViewController = [[IASKSpecifierValuesViewController alloc] initWithNibName:@"IASKSpecifierValuesView" bundle:nil];
- targetViewController.settingsStore = self.settingsStore;
+
// add the new view controller to the dictionary and then to the 'viewList' array
[newItemDict setObject:targetViewController forKey:@"viewController"];
[_viewList replaceObjectAtIndex:kIASKSpecifierValuesViewControllerIndex withObject:newItemDict];
@@ -582,6 +582,7 @@ - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath
self.currentIndexPath = indexPath;
[targetViewController setCurrentSpecifier:specifier];
targetViewController.settingsReader = self.settingsReader;
+ targetViewController.settingsStore = self.settingsStore;
[[self navigationController] pushViewController:targetViewController animated:YES];
}
else if ([[specifier type] isEqualToString:kIASKPSSliderSpecifier]) {
Please sign in to comment.
Something went wrong with that request. Please try again.