- Small adjust for cell selection color of Missions screen ios-revival
authorantonc27 <antonc27@mail.ru>
Tue, 20 Oct 2015 00:51:45 +0200
branchios-revival
changeset 11218 08f20ffa5801
parent 11217 e68b3e392091
child 11219 c51ecb9bcf05
- Small adjust for cell selection color of Missions screen
project_files/HedgewarsMobile/Classes/MissionTrainingViewController.m
--- a/project_files/HedgewarsMobile/Classes/MissionTrainingViewController.m	Mon Oct 19 03:39:47 2015 +0200
+++ b/project_files/HedgewarsMobile/Classes/MissionTrainingViewController.m	Tue Oct 20 00:51:45 2015 +0200
@@ -148,6 +148,12 @@
     cell.detailTextLabel.numberOfLines = ([cell.detailTextLabel.text length] % 40);
     cell.detailTextLabel.baselineAdjustment = UIBaselineAdjustmentAlignCenters;
 
+    UIView *bgColorView = [[UIView alloc] init];
+    bgColorView.backgroundColor = [UIColor colorWithRed:(85.0/255.0) green:(15.0/255.0) blue:(106.0/255.0) alpha:1.0];
+    bgColorView.layer.masksToBounds = YES;
+    cell.selectedBackgroundView = bgColorView;
+    [bgColorView release];
+    
     cell.backgroundColor = [UIColor blackColorTransparent];
     return cell;
 }