Sfoglia il codice sorgente

1.修改iOS Apex Drivers首页选中颜色。

Pen Li 7 anni fa
parent
commit
a8d12cf14a
1 ha cambiato i file con 4 aggiunte e 3 eliminazioni
  1. 4 3
      Redant Drivers/Apex And Drivers/Home/RAOrderCell.m

+ 4 - 3
Redant Drivers/Apex And Drivers/Home/RAOrderCell.m

@@ -61,12 +61,13 @@
 - (UIView *)selectionView {
     if (!_selectionView) {
         _selectionView = [UIView new];
-        _selectionView.backgroundColor = [UIColor redColor];
+        unsigned long color = strtoul([@"0xaad3df" UTF8String],0,16);
+        _selectionView.backgroundColor = UIColorFromRGB(color);
         
         _selectionView.layer.cornerRadius = 5.0f;
         _selectionView.layer.masksToBounds = YES;
-        _selectionView.layer.shadowColor = [UIColor redColor].CGColor;
-        _selectionView.layer.borderColor = [UIColor redColor].CGColor;
+        _selectionView.layer.shadowColor = UIColorFromRGB(color).CGColor;
+        _selectionView.layer.borderColor = UIColorFromRGB(color).CGColor;
         _selectionView.layer.borderWidth = 0.5f;
     }
     return _selectionView;