Skip to content

Commit

Permalink
Fix bug with settings store and MultiValueSpecifier where value does …
Browse files Browse the repository at this point in the history
…not get updated
  • Loading branch information
Marc-Etienne M.Léveillé committed Nov 11, 2010
1 parent 23e311c commit 03482e7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion InAppSettingsKit/Controllers/IASKAppSettingsViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand All @@ -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]) {
Expand Down

0 comments on commit 03482e7

Please sign in to comment.