project_files/HedgewarsMobile/Classes/SingleSchemeViewController.m
branchios-revival
changeset 11286 c0d6f6ffa798
parent 11148 064a53861759
child 11295 6b6d96077395
equal deleted inserted replaced
11279:9e0fe32aff59 11286:c0d6f6ffa798
   278     NSIndexPath *indexPath = [NSIndexPath indexPathForRow:theSlider.tag-SLIDER_TAG inSection:1];
   278     NSIndexPath *indexPath = [NSIndexPath indexPathForRow:theSlider.tag-SLIDER_TAG inSection:1];
   279     // get its cell
   279     // get its cell
   280     UITableViewCell *cell = [self.tableView cellForRowAtIndexPath:indexPath];
   280     UITableViewCell *cell = [self.tableView cellForRowAtIndexPath:indexPath];
   281     // grab the associated labels
   281     // grab the associated labels
   282     UILabel *detailLabel = (UILabel *)cell.detailTextLabel;
   282     UILabel *detailLabel = (UILabel *)cell.detailTextLabel;
   283     UILabel *cellLabel = (UILabel *)[cell.contentView viewWithTag:LABEL_TAG];
       
   284     // modify it
   283     // modify it
   285 
   284 
   286     checkValueString(detailLabel.text,cellLabel.text,theSlider);
   285     NSString *basicSettingTitleKey = [[self.basicSettingList objectAtIndex:[indexPath row]] objectForKey:@"title"];
       
   286     checkValueString(detailLabel.text,basicSettingTitleKey,theSlider);
   287 
   287 
   288     // save changes in the main array
   288     // save changes in the main array
   289     NSMutableArray *array = [self.schemeDictionary objectForKey:@"basic"];
   289     NSMutableArray *array = [self.schemeDictionary objectForKey:@"basic"];
   290     [array replaceObjectAtIndex:theSlider.tag-SLIDER_TAG withObject:[NSNumber numberWithInteger:theSlider.value]];
   290     [array replaceObjectAtIndex:theSlider.tag-SLIDER_TAG withObject:[NSNumber numberWithInteger:theSlider.value]];
   291 }
   291 }