Bläddra i källkod

1.修改iOS Apex Drivers Edit Order日期选择按钮位置和图标。

Pen Li 7 år sedan
förälder
incheckning
8a7d7d80f3

+ 23 - 0
Redant Drivers/Apex And Drivers/Assets.xcassets/btn_calendar.imageset/Contents.json

@@ -0,0 +1,23 @@
+{
+  "images" : [
+    {
+      "idiom" : "universal",
+      "filename" : "btn_calendar.png",
+      "scale" : "1x"
+    },
+    {
+      "idiom" : "universal",
+      "filename" : "btn_calendar@2x.png",
+      "scale" : "2x"
+    },
+    {
+      "idiom" : "universal",
+      "filename" : "btn_calendar@3x.png",
+      "scale" : "3x"
+    }
+  ],
+  "info" : {
+    "version" : 1,
+    "author" : "xcode"
+  }
+}

BIN
Redant Drivers/Apex And Drivers/Assets.xcassets/btn_calendar.imageset/btn_calendar.png


BIN
Redant Drivers/Apex And Drivers/Assets.xcassets/btn_calendar.imageset/btn_calendar@2x.png


BIN
Redant Drivers/Apex And Drivers/Assets.xcassets/btn_calendar.imageset/btn_calendar@3x.png


+ 1 - 1
Redant Drivers/Apex And Drivers/DatePicker/RADatePickerViewController.m

@@ -58,7 +58,7 @@
     [super viewDidLoad];
     // Do any additional setup after loading the view.
     
-    self.view.layer.cornerRadius = 5.0f;
+    self.view.layer.cornerRadius = 10.0f;
     self.view.layer.masksToBounds = YES;
     
     self.datePicker.datePickerMode = self.datePickerMode;

+ 5 - 5
Redant Drivers/Apex And Drivers/Update/Edit.storyboard

@@ -261,7 +261,7 @@
                                                     <nil key="highlightedColor"/>
                                                 </label>
                                                 <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Label" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="Urz-aO-cuz">
-                                                    <rect key="frame" x="5" y="31" width="330" height="18"/>
+                                                    <rect key="frame" x="5" y="31" width="325" height="18"/>
                                                     <fontDescription key="fontDescription" type="system" pointSize="14"/>
                                                     <nil key="textColor"/>
                                                     <nil key="highlightedColor"/>
@@ -273,12 +273,12 @@
                                                     <nil key="highlightedColor"/>
                                                 </label>
                                                 <button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="i0H-tc-GBN">
-                                                    <rect key="frame" x="340" y="12.5" width="30" height="30"/>
+                                                    <rect key="frame" x="335" y="12.5" width="30" height="30"/>
                                                     <constraints>
                                                         <constraint firstAttribute="height" constant="30" id="A8j-lk-laU"/>
                                                         <constraint firstAttribute="width" constant="30" id="Tra-px-j9M"/>
                                                     </constraints>
-                                                    <state key="normal" image="btn_scanner"/>
+                                                    <state key="normal" image="btn_calendar"/>
                                                     <connections>
                                                         <action selector="datePickerBtnClick:" destination="b5o-NB-xXS" eventType="touchUpInside" id="KSB-Lh-3WQ"/>
                                                     </connections>
@@ -292,7 +292,7 @@
                                                 <constraint firstItem="Urz-aO-cuz" firstAttribute="top" secondItem="877-kV-pfE" secondAttribute="bottom" constant="5" id="OzZ-QE-uvp"/>
                                                 <constraint firstItem="i0H-tc-GBN" firstAttribute="centerY" secondItem="Rxx-xH-4mP" secondAttribute="centerY" id="RIk-Rw-eDH"/>
                                                 <constraint firstAttribute="trailing" relation="greaterThanOrEqual" secondItem="OjZ-5U-5uD" secondAttribute="trailing" constant="5" id="dgM-YQ-7eq"/>
-                                                <constraint firstAttribute="trailing" secondItem="i0H-tc-GBN" secondAttribute="trailing" constant="5" id="eSh-WN-DOb"/>
+                                                <constraint firstAttribute="trailing" secondItem="i0H-tc-GBN" secondAttribute="trailing" constant="10" id="eSh-WN-DOb"/>
                                                 <constraint firstItem="OjZ-5U-5uD" firstAttribute="top" secondItem="Rxx-xH-4mP" secondAttribute="top" constant="2" id="ij3-sW-kEX"/>
                                                 <constraint firstItem="i0H-tc-GBN" firstAttribute="leading" relation="greaterThanOrEqual" secondItem="OjZ-5U-5uD" secondAttribute="trailing" constant="5" id="lVp-Si-4A5"/>
                                                 <constraint firstItem="Urz-aO-cuz" firstAttribute="leading" secondItem="877-kV-pfE" secondAttribute="leading" id="qMt-p5-gtZ"/>
@@ -411,6 +411,6 @@
         </scene>
     </scenes>
     <resources>
-        <image name="btn_scanner" width="30" height="30"/>
+        <image name="btn_calendar" width="30" height="30"/>
     </resources>
 </document>