equal
deleted
inserted
replaced
182 label.font = [UIFont boldSystemFontOfSize:[UIFont labelFontSize]]; |
182 label.font = [UIFont boldSystemFontOfSize:[UIFont labelFontSize]]; |
183 [cell.contentView addSubview:label]; |
183 [cell.contentView addSubview:label]; |
184 [label release]; |
184 [label release]; |
185 } |
185 } |
186 |
186 |
187 UIImage *img = [[UIImage alloc] initWithContentsOfFile:[NSString stringWithFormat:@"%@/icon%@.png",BTN_DIRECTORY(),[[self.basicSettingList objectAtIndex:row] objectForKey:@"image"]]]; |
187 UIImage *img = [[UIImage alloc] initWithContentsOfFile:[NSString stringWithFormat:@"%@/icon%@.png",ICONS_DIRECTORY(), |
|
188 [[self.basicSettingList objectAtIndex:row] objectForKey:@"image"]]]; |
188 cell.imageView.image = img; |
189 cell.imageView.image = img; |
189 [img release]; |
190 [img release]; |
190 |
191 |
191 UILabel *cellLabel = (UILabel *)[cell.contentView viewWithTag:LABEL_TAG]; |
192 UILabel *cellLabel = (UILabel *)[cell.contentView viewWithTag:LABEL_TAG]; |
192 cellLabel.text = [[self.basicSettingList objectAtIndex:row] objectForKey:@"title"]; |
193 cellLabel.text = [[self.basicSettingList objectAtIndex:row] objectForKey:@"title"]; |
228 |
229 |
229 UISwitch *switcher = (UISwitch *)cell.accessoryView; |
230 UISwitch *switcher = (UISwitch *)cell.accessoryView; |
230 switcher.tag = SWITCH_TAG + row; |
231 switcher.tag = SWITCH_TAG + row; |
231 [switcher setOn:[[[self.schemeDictionary objectForKey:@"gamemod"] objectAtIndex:row] boolValue] animated:NO]; |
232 [switcher setOn:[[[self.schemeDictionary objectForKey:@"gamemod"] objectAtIndex:row] boolValue] animated:NO]; |
232 |
233 |
233 UIImage *image = [[UIImage alloc] initWithContentsOfFile:[NSString stringWithFormat:@"%@/btn%@.png",BTN_DIRECTORY(),[[self.gameModifierArray objectAtIndex:row] objectForKey:@"image"]]]; |
234 UIImage *image = [[UIImage alloc] initWithContentsOfFile:[NSString stringWithFormat:@"%@/btn%@.png",ICONS_DIRECTORY(), |
|
235 [[self.gameModifierArray objectAtIndex:row] objectForKey:@"image"]]]; |
234 cell.imageView.image = image; |
236 cell.imageView.image = image; |
235 [image release]; |
237 [image release]; |
236 [cell.imageView.layer setCornerRadius:7.0f]; |
238 [cell.imageView.layer setCornerRadius:7.0f]; |
237 [cell.imageView.layer setMasksToBounds:YES]; |
239 [cell.imageView.layer setMasksToBounds:YES]; |
238 cell.textLabel.text = [[self.gameModifierArray objectAtIndex:row] objectForKey:@"title"]; |
240 cell.textLabel.text = [[self.gameModifierArray objectAtIndex:row] objectForKey:@"title"]; |