Explorar el Código

Apex Mobile
增加临时图标,菜单图标增加选染色

Ray Zhang hace 8 años
padre
commit
d1583d1574

BIN
Apex Mobile/Apex Mobile.xcodeproj/project.xcworkspace/xcuserdata/Ray.xcuserdatad/UserInterfaceState.xcuserstate


+ 3 - 3
Apex Mobile/Apex Mobile.xcodeproj/xcuserdata/Ray.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist

@@ -90,11 +90,11 @@
             ignoreCount = "0"
             continueAfterRunningActions = "No"
             filePath = "Apex Mobile/StaticModelistViewController.m"
-            timestampString = "538730103.330483"
+            timestampString = "538732747.720801"
             startingColumnNumber = "9223372036854775807"
             endingColumnNumber = "9223372036854775807"
-            startingLineNumber = "64"
-            endingLineNumber = "64"
+            startingLineNumber = "65"
+            endingLineNumber = "65"
             landmarkName = "-tableView:numberOfRowsInSection:"
             landmarkType = "7">
          </BreakpointContent>

+ 1 - 0
Apex Mobile/Apex Mobile/Constant.h

@@ -11,6 +11,7 @@
 #else
 #define DebugLog( s, ... )
 #endif
+#define UIColorFromRGB(rgbValue) [UIColor colorWithRed:((float)((rgbValue & 0xFF0000) >> 16))/255.0 green:((float)((rgbValue & 0xFF00) >> 8))/255.0 blue:((float)(rgbValue & 0xFF))/255.0 alpha:1.0]
 
 
 #import <Foundation/Foundation.h>

+ 4 - 1
Apex Mobile/Apex Mobile/StaticModelistViewController.m

@@ -8,6 +8,7 @@
 
 #import "StaticModelistViewController.h"
 #import "StaticModeTableViewCell.h"
+#import "Constant.h"
 
 @interface StaticModelistViewController ()
 
@@ -77,7 +78,9 @@
     cell.textLabel.text = item[@"name"];
     cell.detailTextLabel.text = item[@"detail"];
     cell.detailTextLabel.textColor = [UIColor grayColor];
-    cell.imageView.image = [UIImage imageNamed:item[@"icon"]];
+    cell.imageView.tintColor=UIColorFromRGB(0x1e7ffb);
+    cell.imageView.image = [[UIImage imageNamed:item[@"icon"]] imageWithRenderingMode:UIImageRenderingModeAlwaysTemplate];
+    
     //    RAModel *model = self.modelist[indexPath.row];//[self.modeArray objectAtIndex:indexPath.row];
     
     //[cell setModeinfo:[self.modelist[indexPath.row] mutableCopy]];