project_files/HedgewarsMobile/Classes/MapConfigViewController.m
changeset 3623 f14db208f2fa
parent 3598 a8aa06bae895
child 3625 9f1d79e01a60
equal deleted inserted replaced
3622:24c4726b1019 3623:f14db208f2fa
   281     
   281     
   282     UITableViewCell *cell = [aTableView dequeueReusableCellWithIdentifier:CellIdentifier];
   282     UITableViewCell *cell = [aTableView dequeueReusableCellWithIdentifier:CellIdentifier];
   283     if (cell == nil) 
   283     if (cell == nil) 
   284         cell = [[[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:CellIdentifier] autorelease];
   284         cell = [[[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:CellIdentifier] autorelease];
   285     
   285     
       
   286     if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad) {
       
   287         cell.textLabel.textColor = [UIColor yellowColor]; //TODO: find proper color
       
   288     }
       
   289     
   286     if (self.segmentedControl.selectedSegmentIndex != 1) {
   290     if (self.segmentedControl.selectedSegmentIndex != 1) {
   287         // the % prevents a strange bug that occurs sporadically
   291         // the % prevents a strange bug that occurs sporadically
   288         NSString *themeName = [self.themeArray objectAtIndex:row % [self.themeArray count]];
   292         NSString *themeName = [self.themeArray objectAtIndex:row % [self.themeArray count]];
   289         cell.textLabel.text = themeName;
   293         cell.textLabel.text = themeName;
   290         UIImage *image = [[UIImage alloc] initWithContentsOfFile:[NSString stringWithFormat:@"%@/%@/icon.png",THEMES_DIRECTORY(),themeName]];
   294         UIImage *image = [[UIImage alloc] initWithContentsOfFile:[NSString stringWithFormat:@"%@/%@/icon.png",THEMES_DIRECTORY(),themeName]];