Selaa lähdekoodia

1.修改iOS Apex Drivers首页Header。

Pen Li 7 vuotta sitten
vanhempi
commit
f2bc2a9ce8

+ 6 - 0
Redant Drivers/Apex And Drivers.xcodeproj/project.pbxproj

@@ -54,6 +54,7 @@
 		4235FABB213E644A000B6672 /* RADetailSignatureCell.m in Sources */ = {isa = PBXBuildFile; fileRef = 4235FABA213E644A000B6672 /* RADetailSignatureCell.m */; };
 		4235FABE213E6512000B6672 /* RADetailSignatureModel.m in Sources */ = {isa = PBXBuildFile; fileRef = 4235FABD213E6512000B6672 /* RADetailSignatureModel.m */; };
 		423C6A4E20C909FC00455E27 /* RANotificationNameCenter.m in Sources */ = {isa = PBXBuildFile; fileRef = 423C6A4D20C909FC00455E27 /* RANotificationNameCenter.m */; };
+		423EFD1E21465BE00091BAEB /* RAHomeHeaderView.m in Sources */ = {isa = PBXBuildFile; fileRef = 423EFD1D21465BE00091BAEB /* RAHomeHeaderView.m */; };
 		424204DC20C61561005AEED9 /* RAQRCodeScannerViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 424204DB20C61561005AEED9 /* RAQRCodeScannerViewController.m */; };
 		424204DE20C6156E005AEED9 /* QRCode.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 424204DD20C6156E005AEED9 /* QRCode.storyboard */; };
 		424204E420C65827005AEED9 /* Camera.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 424204E320C65827005AEED9 /* Camera.storyboard */; };
@@ -266,6 +267,8 @@
 		4235FABD213E6512000B6672 /* RADetailSignatureModel.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = RADetailSignatureModel.m; sourceTree = "<group>"; };
 		423C6A4C20C909FC00455E27 /* RANotificationNameCenter.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = RANotificationNameCenter.h; sourceTree = "<group>"; };
 		423C6A4D20C909FC00455E27 /* RANotificationNameCenter.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = RANotificationNameCenter.m; sourceTree = "<group>"; };
+		423EFD1C21465BE00091BAEB /* RAHomeHeaderView.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = RAHomeHeaderView.h; sourceTree = "<group>"; };
+		423EFD1D21465BE00091BAEB /* RAHomeHeaderView.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = RAHomeHeaderView.m; sourceTree = "<group>"; };
 		424204DA20C61561005AEED9 /* RAQRCodeScannerViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = RAQRCodeScannerViewController.h; sourceTree = "<group>"; };
 		424204DB20C61561005AEED9 /* RAQRCodeScannerViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = RAQRCodeScannerViewController.m; sourceTree = "<group>"; };
 		424204DD20C6156E005AEED9 /* QRCode.storyboard */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; path = QRCode.storyboard; sourceTree = "<group>"; };
@@ -540,6 +543,8 @@
 				422BD95B213CE0F300DF8E89 /* HomeHeader.xib */,
 				42DFE26D213FC1B7000213C2 /* RAHomeSectionHeaderView.h */,
 				42DFE26E213FC1B7000213C2 /* RAHomeSectionHeaderView.m */,
+				423EFD1C21465BE00091BAEB /* RAHomeHeaderView.h */,
+				423EFD1D21465BE00091BAEB /* RAHomeHeaderView.m */,
 			);
 			path = Home;
 			sourceTree = "<group>";
@@ -1291,6 +1296,7 @@
 				4255EC8D20C5232C00E5DA24 /* RAEditLabelCell.m in Sources */,
 				42D8B8CC20C24B27001C125F /* RADetailActionModel.m in Sources */,
 				4205FD5820C0F6F100DB42B4 /* RAConvertor.m in Sources */,
+				423EFD1E21465BE00091BAEB /* RAHomeHeaderView.m in Sources */,
 				4205FD5320C0F50C00DB42B4 /* JLCustomerAlertController.m in Sources */,
 				4281100120E4D47000315156 /* JLRefreshFooter.m in Sources */,
 				4255EC6820C4E27700E5DA24 /* RADetailActionSelectionViewController+TableDataSource.m in Sources */,

+ 262 - 1
Redant Drivers/Apex And Drivers/Home/HomeHeader.xib

@@ -52,7 +52,268 @@
                 <outlet property="moreBtn" destination="J4X-Vt-JUe" id="GLd-pT-vvy"/>
                 <outlet property="titleLaebl" destination="zid-Ks-zO5" id="kFh-0I-zJe"/>
             </connections>
-            <point key="canvasLocation" x="205" y="-122"/>
+            <point key="canvasLocation" x="988" y="291"/>
+        </view>
+        <view contentMode="scaleToFill" id="CmN-WL-UzN">
+            <rect key="frame" x="0.0" y="0.0" width="658" height="165"/>
+            <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
+            <subviews>
+                <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="q6Y-ok-z0V">
+                    <rect key="frame" x="0.0" y="-835" width="658" height="1000"/>
+                    <color key="backgroundColor" red="0.99917410539999996" green="0.82124866299999999" blue="0.23193136440000001" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
+                    <constraints>
+                        <constraint firstAttribute="height" constant="1000" id="fD7-Vn-lfh"/>
+                    </constraints>
+                </view>
+                <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="kUV-Ds-Cp0">
+                    <rect key="frame" x="5" y="70" width="648" height="90"/>
+                    <subviews>
+                        <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="oNA-fq-R2b">
+                            <rect key="frame" x="5" y="5" width="156" height="80"/>
+                            <subviews>
+                                <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Sign Out" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="moB-91-AOW">
+                                    <rect key="frame" x="50.5" y="61" width="56" height="17"/>
+                                    <fontDescription key="fontDescription" type="system" pointSize="14"/>
+                                    <nil key="textColor"/>
+                                    <nil key="highlightedColor"/>
+                                </label>
+                                <button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="DoZ-Kc-GDv">
+                                    <rect key="frame" x="53" y="6" width="50" height="50"/>
+                                    <color key="backgroundColor" red="0.13660016199169084" green="0.13939174194564607" blue="0.67000001669999998" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
+                                    <constraints>
+                                        <constraint firstAttribute="height" constant="50" id="4Sr-1p-bEQ"/>
+                                        <constraint firstAttribute="width" constant="50" id="gv7-gD-7iB"/>
+                                    </constraints>
+                                </button>
+                            </subviews>
+                            <color key="backgroundColor" red="0.34185270566415227" green="0.67000001669999998" blue="0.41932404711053578" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
+                            <constraints>
+                                <constraint firstItem="DoZ-Kc-GDv" firstAttribute="centerX" secondItem="oNA-fq-R2b" secondAttribute="centerX" id="Q1t-8S-8Zh"/>
+                                <constraint firstItem="moB-91-AOW" firstAttribute="top" secondItem="DoZ-Kc-GDv" secondAttribute="bottom" constant="5" id="WrK-S5-iW2"/>
+                                <constraint firstAttribute="bottom" secondItem="moB-91-AOW" secondAttribute="bottom" constant="2" id="lJt-lC-uqw"/>
+                                <constraint firstItem="moB-91-AOW" firstAttribute="centerX" secondItem="oNA-fq-R2b" secondAttribute="centerX" id="smn-aP-g6P"/>
+                                <constraint firstAttribute="height" constant="80" id="vze-jF-PXl"/>
+                            </constraints>
+                        </view>
+                        <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="y3L-Ku-sNt">
+                            <rect key="frame" x="166" y="5" width="155.5" height="80"/>
+                            <subviews>
+                                <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Setting" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="JIY-pR-ykw">
+                                    <rect key="frame" x="54.5" y="61" width="46.5" height="17"/>
+                                    <fontDescription key="fontDescription" type="system" pointSize="14"/>
+                                    <nil key="textColor"/>
+                                    <nil key="highlightedColor"/>
+                                </label>
+                                <button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="vJn-m4-oEg">
+                                    <rect key="frame" x="53" y="6" width="50" height="50"/>
+                                    <color key="backgroundColor" red="0.13660016199169084" green="0.13939174194564607" blue="0.67000001669999998" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
+                                </button>
+                            </subviews>
+                            <color key="backgroundColor" red="0.99917410539999996" green="0.82124866299999999" blue="0.23193136440000001" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
+                            <constraints>
+                                <constraint firstItem="vJn-m4-oEg" firstAttribute="centerX" secondItem="y3L-Ku-sNt" secondAttribute="centerX" id="UoL-47-ze8"/>
+                                <constraint firstItem="JIY-pR-ykw" firstAttribute="centerX" secondItem="y3L-Ku-sNt" secondAttribute="centerX" id="uEn-Zw-Duc"/>
+                            </constraints>
+                        </view>
+                        <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="2aS-CO-3jY">
+                            <rect key="frame" x="326.5" y="5" width="155.5" height="80"/>
+                            <subviews>
+                                <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Available" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="Hae-rx-iyX">
+                                    <rect key="frame" x="50" y="61" width="57" height="17"/>
+                                    <fontDescription key="fontDescription" type="system" pointSize="14"/>
+                                    <nil key="textColor"/>
+                                    <nil key="highlightedColor"/>
+                                </label>
+                                <button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="zav-l2-wiC">
+                                    <rect key="frame" x="53" y="6" width="50" height="50"/>
+                                    <color key="backgroundColor" red="0.13660016199169084" green="0.13939174194564607" blue="0.67000001669999998" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
+                                </button>
+                            </subviews>
+                            <color key="backgroundColor" red="1" green="0.1047433005" blue="0.075207091899999995" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
+                            <constraints>
+                                <constraint firstItem="Hae-rx-iyX" firstAttribute="centerX" secondItem="2aS-CO-3jY" secondAttribute="centerX" id="LUa-Up-UxI"/>
+                                <constraint firstItem="zav-l2-wiC" firstAttribute="centerX" secondItem="2aS-CO-3jY" secondAttribute="centerX" id="qYz-dD-V8c"/>
+                            </constraints>
+                        </view>
+                        <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="iQb-jc-IpW">
+                            <rect key="frame" x="487" y="5" width="155.5" height="80"/>
+                            <subviews>
+                                <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Message" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="T2T-ct-zc2">
+                                    <rect key="frame" x="49" y="61" width="58" height="17"/>
+                                    <fontDescription key="fontDescription" type="system" pointSize="14"/>
+                                    <nil key="textColor"/>
+                                    <nil key="highlightedColor"/>
+                                </label>
+                                <button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="g4U-M8-oMo">
+                                    <rect key="frame" x="53" y="6" width="50" height="50"/>
+                                    <color key="backgroundColor" red="0.13660016199169084" green="0.13939174194564607" blue="0.67000001669999998" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
+                                </button>
+                            </subviews>
+                            <color key="backgroundColor" red="0.31186315860000002" green="0.73688559149999999" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
+                            <constraints>
+                                <constraint firstItem="g4U-M8-oMo" firstAttribute="centerX" secondItem="iQb-jc-IpW" secondAttribute="centerX" id="Hcz-d3-Oxr"/>
+                                <constraint firstItem="T2T-ct-zc2" firstAttribute="centerX" secondItem="iQb-jc-IpW" secondAttribute="centerX" id="Rm8-84-grW"/>
+                            </constraints>
+                        </view>
+                    </subviews>
+                    <color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
+                    <constraints>
+                        <constraint firstItem="vJn-m4-oEg" firstAttribute="height" secondItem="DoZ-Kc-GDv" secondAttribute="height" id="4wb-rS-ZBp"/>
+                        <constraint firstItem="2aS-CO-3jY" firstAttribute="width" secondItem="y3L-Ku-sNt" secondAttribute="width" id="5Yk-Oz-jzf"/>
+                        <constraint firstItem="vJn-m4-oEg" firstAttribute="width" secondItem="DoZ-Kc-GDv" secondAttribute="width" id="7e5-7j-FSm"/>
+                        <constraint firstItem="oNA-fq-R2b" firstAttribute="leading" secondItem="kUV-Ds-Cp0" secondAttribute="leading" constant="5" id="CKa-Iw-b8x"/>
+                        <constraint firstItem="zav-l2-wiC" firstAttribute="height" secondItem="vJn-m4-oEg" secondAttribute="height" id="Ie9-Em-wch"/>
+                        <constraint firstItem="Hae-rx-iyX" firstAttribute="centerY" secondItem="JIY-pR-ykw" secondAttribute="centerY" id="K8e-jH-81a"/>
+                        <constraint firstItem="y3L-Ku-sNt" firstAttribute="leading" secondItem="oNA-fq-R2b" secondAttribute="trailing" constant="5" id="POv-8i-auz"/>
+                        <constraint firstItem="zav-l2-wiC" firstAttribute="centerY" secondItem="vJn-m4-oEg" secondAttribute="centerY" id="RZa-OE-IMe"/>
+                        <constraint firstItem="y3L-Ku-sNt" firstAttribute="width" secondItem="oNA-fq-R2b" secondAttribute="width" id="Rsn-FI-cp0"/>
+                        <constraint firstAttribute="bottom" secondItem="oNA-fq-R2b" secondAttribute="bottom" constant="5" id="TWK-FK-7GT"/>
+                        <constraint firstItem="T2T-ct-zc2" firstAttribute="centerY" secondItem="Hae-rx-iyX" secondAttribute="centerY" id="Vso-Mz-jgc"/>
+                        <constraint firstItem="2aS-CO-3jY" firstAttribute="top" secondItem="y3L-Ku-sNt" secondAttribute="top" id="WcC-Md-eqx"/>
+                        <constraint firstItem="y3L-Ku-sNt" firstAttribute="height" secondItem="oNA-fq-R2b" secondAttribute="height" id="X0c-1U-MCR"/>
+                        <constraint firstItem="iQb-jc-IpW" firstAttribute="top" secondItem="2aS-CO-3jY" secondAttribute="top" id="XeB-ij-xLR"/>
+                        <constraint firstItem="iQb-jc-IpW" firstAttribute="height" secondItem="2aS-CO-3jY" secondAttribute="height" id="YQ4-cH-GcD"/>
+                        <constraint firstItem="g4U-M8-oMo" firstAttribute="width" secondItem="zav-l2-wiC" secondAttribute="width" id="YQm-gm-gc3"/>
+                        <constraint firstItem="2aS-CO-3jY" firstAttribute="height" secondItem="y3L-Ku-sNt" secondAttribute="height" id="dBi-su-OP5"/>
+                        <constraint firstItem="JIY-pR-ykw" firstAttribute="centerY" secondItem="moB-91-AOW" secondAttribute="centerY" id="eHj-Y4-K2p"/>
+                        <constraint firstItem="zav-l2-wiC" firstAttribute="width" secondItem="vJn-m4-oEg" secondAttribute="width" id="fC8-HD-7V1"/>
+                        <constraint firstItem="g4U-M8-oMo" firstAttribute="centerY" secondItem="zav-l2-wiC" secondAttribute="centerY" id="hO0-hc-9jy"/>
+                        <constraint firstItem="iQb-jc-IpW" firstAttribute="leading" secondItem="2aS-CO-3jY" secondAttribute="trailing" constant="5" id="iJl-Uv-L8f"/>
+                        <constraint firstItem="2aS-CO-3jY" firstAttribute="leading" secondItem="y3L-Ku-sNt" secondAttribute="trailing" constant="5" id="jl1-a3-SZq"/>
+                        <constraint firstItem="vJn-m4-oEg" firstAttribute="centerY" secondItem="DoZ-Kc-GDv" secondAttribute="centerY" id="nhg-zf-Kf1"/>
+                        <constraint firstItem="y3L-Ku-sNt" firstAttribute="top" secondItem="oNA-fq-R2b" secondAttribute="top" id="q09-hM-NGL"/>
+                        <constraint firstAttribute="trailing" secondItem="iQb-jc-IpW" secondAttribute="trailing" constant="5" id="wG2-nV-zuI"/>
+                        <constraint firstItem="g4U-M8-oMo" firstAttribute="height" secondItem="zav-l2-wiC" secondAttribute="height" id="wim-Sh-OyP"/>
+                        <constraint firstItem="iQb-jc-IpW" firstAttribute="width" secondItem="2aS-CO-3jY" secondAttribute="width" id="yMc-6Q-3Zn"/>
+                    </constraints>
+                    <userDefinedRuntimeAttributes>
+                        <userDefinedRuntimeAttribute type="number" keyPath="layer.cornerRadius">
+                            <integer key="value" value="5"/>
+                        </userDefinedRuntimeAttribute>
+                        <userDefinedRuntimeAttribute type="boolean" keyPath="layer.masksToBounds" value="YES"/>
+                    </userDefinedRuntimeAttributes>
+                </view>
+                <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="kyi-82-tau">
+                    <rect key="frame" x="5" y="5" width="648" height="60"/>
+                    <subviews>
+                        <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="xlF-8W-Q64">
+                            <rect key="frame" x="0.0" y="0.0" width="212.5" height="60"/>
+                            <subviews>
+                                <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="121" textAlignment="center" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="U0M-Uc-xWZ">
+                                    <rect key="frame" x="0.0" y="7.5" width="212.5" height="21"/>
+                                    <fontDescription key="fontDescription" type="system" pointSize="17"/>
+                                    <nil key="textColor"/>
+                                    <nil key="highlightedColor"/>
+                                </label>
+                                <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="New" textAlignment="center" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="hNz-uM-4Kh">
+                                    <rect key="frame" x="0.0" y="31.5" width="212.5" height="21"/>
+                                    <fontDescription key="fontDescription" type="system" pointSize="17"/>
+                                    <nil key="textColor"/>
+                                    <nil key="highlightedColor"/>
+                                </label>
+                            </subviews>
+                            <color key="backgroundColor" red="0.64783424140000001" green="0.22448275840000001" blue="0.21907054149999999" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
+                            <constraints>
+                                <constraint firstItem="U0M-Uc-xWZ" firstAttribute="leading" secondItem="xlF-8W-Q64" secondAttribute="leading" id="ACy-Uj-7zK"/>
+                                <constraint firstItem="hNz-uM-4Kh" firstAttribute="centerX" secondItem="xlF-8W-Q64" secondAttribute="centerX" id="IQG-0W-Xff"/>
+                                <constraint firstItem="U0M-Uc-xWZ" firstAttribute="centerY" secondItem="xlF-8W-Q64" secondAttribute="centerY" constant="-12" id="JXW-OP-ZkE"/>
+                                <constraint firstItem="hNz-uM-4Kh" firstAttribute="centerY" secondItem="xlF-8W-Q64" secondAttribute="centerY" constant="12" id="KEA-BK-rRZ"/>
+                                <constraint firstItem="U0M-Uc-xWZ" firstAttribute="centerX" secondItem="xlF-8W-Q64" secondAttribute="centerX" id="S2y-rD-HIY"/>
+                                <constraint firstAttribute="trailing" secondItem="U0M-Uc-xWZ" secondAttribute="trailing" id="doI-fw-o6q"/>
+                                <constraint firstAttribute="height" constant="60" id="iHg-oS-gtF"/>
+                                <constraint firstItem="hNz-uM-4Kh" firstAttribute="leading" secondItem="xlF-8W-Q64" secondAttribute="leading" id="lFa-UJ-ZPM"/>
+                                <constraint firstAttribute="trailing" secondItem="hNz-uM-4Kh" secondAttribute="trailing" id="vSh-K9-O86"/>
+                            </constraints>
+                        </view>
+                        <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="PMs-34-A9a">
+                            <rect key="frame" x="217.5" y="0.5" width="213" height="60"/>
+                            <subviews>
+                                <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="132" textAlignment="center" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="vBo-bi-6Qy">
+                                    <rect key="frame" x="0.0" y="7.5" width="213" height="21"/>
+                                    <fontDescription key="fontDescription" type="system" pointSize="17"/>
+                                    <nil key="textColor"/>
+                                    <nil key="highlightedColor"/>
+                                </label>
+                                <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Processing" textAlignment="center" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="ebH-bD-mco">
+                                    <rect key="frame" x="0.0" y="31.5" width="213" height="21"/>
+                                    <fontDescription key="fontDescription" type="system" pointSize="17"/>
+                                    <nil key="textColor"/>
+                                    <nil key="highlightedColor"/>
+                                </label>
+                            </subviews>
+                            <color key="backgroundColor" red="0.081770886230000006" green="0.40781933069999998" blue="0.094417002809999998" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
+                            <constraints>
+                                <constraint firstItem="vBo-bi-6Qy" firstAttribute="centerY" secondItem="PMs-34-A9a" secondAttribute="centerY" constant="-12" id="0BN-oB-DHB"/>
+                                <constraint firstAttribute="trailing" secondItem="ebH-bD-mco" secondAttribute="trailing" id="E68-Id-wFs"/>
+                                <constraint firstItem="vBo-bi-6Qy" firstAttribute="leading" secondItem="PMs-34-A9a" secondAttribute="leading" id="TCb-ql-8or"/>
+                                <constraint firstItem="ebH-bD-mco" firstAttribute="centerY" secondItem="PMs-34-A9a" secondAttribute="centerY" constant="12" id="XbR-iQ-d1y"/>
+                                <constraint firstItem="ebH-bD-mco" firstAttribute="leading" secondItem="PMs-34-A9a" secondAttribute="leading" id="hL5-RQ-vlJ"/>
+                                <constraint firstAttribute="trailing" secondItem="vBo-bi-6Qy" secondAttribute="trailing" id="zpp-LZ-ayx"/>
+                            </constraints>
+                        </view>
+                        <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="thx-28-zRP">
+                            <rect key="frame" x="435.5" y="0.5" width="212.5" height="60"/>
+                            <subviews>
+                                <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="5555" textAlignment="center" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="apL-NL-f18">
+                                    <rect key="frame" x="0.0" y="7.5" width="212.5" height="21"/>
+                                    <fontDescription key="fontDescription" type="system" pointSize="17"/>
+                                    <nil key="textColor"/>
+                                    <nil key="highlightedColor"/>
+                                </label>
+                                <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Finish" textAlignment="center" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="xea-9I-xck">
+                                    <rect key="frame" x="0.0" y="31.5" width="212.5" height="21"/>
+                                    <fontDescription key="fontDescription" type="system" pointSize="17"/>
+                                    <nil key="textColor"/>
+                                    <nil key="highlightedColor"/>
+                                </label>
+                            </subviews>
+                            <color key="backgroundColor" red="0.86933290155440412" green="0.66196060733770723" blue="0.46316586088286715" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
+                            <constraints>
+                                <constraint firstItem="xea-9I-xck" firstAttribute="centerY" secondItem="thx-28-zRP" secondAttribute="centerY" constant="12" id="2wL-0D-0KN"/>
+                                <constraint firstItem="apL-NL-f18" firstAttribute="centerY" secondItem="thx-28-zRP" secondAttribute="centerY" constant="-12" id="B5I-8D-OXj"/>
+                                <constraint firstItem="apL-NL-f18" firstAttribute="leading" secondItem="thx-28-zRP" secondAttribute="leading" id="SDR-0P-bQa"/>
+                                <constraint firstItem="apL-NL-f18" firstAttribute="leading" secondItem="thx-28-zRP" secondAttribute="leading" id="SUR-aO-mcN"/>
+                                <constraint firstItem="xea-9I-xck" firstAttribute="leading" secondItem="thx-28-zRP" secondAttribute="leading" id="WbY-y5-Bzq"/>
+                                <constraint firstAttribute="trailing" secondItem="xea-9I-xck" secondAttribute="trailing" id="Wrp-me-KMm"/>
+                                <constraint firstAttribute="trailing" secondItem="apL-NL-f18" secondAttribute="trailing" id="e8r-Mt-4Eu"/>
+                                <constraint firstAttribute="trailing" secondItem="apL-NL-f18" secondAttribute="trailing" id="xhd-F7-tzD"/>
+                            </constraints>
+                        </view>
+                    </subviews>
+                    <color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
+                    <constraints>
+                        <constraint firstItem="PMs-34-A9a" firstAttribute="centerY" secondItem="xlF-8W-Q64" secondAttribute="centerY" id="89f-Ky-Xz9"/>
+                        <constraint firstItem="thx-28-zRP" firstAttribute="leading" secondItem="PMs-34-A9a" secondAttribute="trailing" constant="5" id="9uh-Lp-BP4"/>
+                        <constraint firstAttribute="trailing" secondItem="thx-28-zRP" secondAttribute="trailing" id="JIk-hm-o4c"/>
+                        <constraint firstItem="xlF-8W-Q64" firstAttribute="centerY" secondItem="kyi-82-tau" secondAttribute="centerY" id="RVI-Lh-yup"/>
+                        <constraint firstItem="thx-28-zRP" firstAttribute="width" secondItem="PMs-34-A9a" secondAttribute="width" id="Vrf-Hv-U3o"/>
+                        <constraint firstItem="PMs-34-A9a" firstAttribute="height" secondItem="xlF-8W-Q64" secondAttribute="height" id="bEL-Mc-ZvI"/>
+                        <constraint firstItem="xlF-8W-Q64" firstAttribute="height" secondItem="kyi-82-tau" secondAttribute="height" id="eaC-V0-RTd"/>
+                        <constraint firstItem="PMs-34-A9a" firstAttribute="width" secondItem="xlF-8W-Q64" secondAttribute="width" id="gDk-is-MGp"/>
+                        <constraint firstItem="PMs-34-A9a" firstAttribute="leading" secondItem="xlF-8W-Q64" secondAttribute="trailing" constant="5" id="ivs-4h-sJQ"/>
+                        <constraint firstItem="U0M-Uc-xWZ" firstAttribute="leading" secondItem="kyi-82-tau" secondAttribute="leading" id="jrd-DE-CxQ"/>
+                        <constraint firstAttribute="height" constant="60" id="keo-5N-7kb"/>
+                        <constraint firstItem="thx-28-zRP" firstAttribute="height" secondItem="PMs-34-A9a" secondAttribute="height" id="zKa-aL-L7h"/>
+                        <constraint firstItem="thx-28-zRP" firstAttribute="centerY" secondItem="PMs-34-A9a" secondAttribute="centerY" id="zyi-vh-RFS"/>
+                    </constraints>
+                </view>
+            </subviews>
+            <color key="backgroundColor" red="0.99917410539999996" green="0.82124866299999999" blue="0.23193136440000001" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
+            <constraints>
+                <constraint firstItem="IHY-tg-LLn" firstAttribute="trailing" secondItem="kUV-Ds-Cp0" secondAttribute="trailing" constant="5" id="1nn-JE-xhd"/>
+                <constraint firstItem="IHY-tg-LLn" firstAttribute="trailing" secondItem="q6Y-ok-z0V" secondAttribute="trailing" id="8VI-Lt-KWR"/>
+                <constraint firstItem="kUV-Ds-Cp0" firstAttribute="leading" secondItem="IHY-tg-LLn" secondAttribute="leading" constant="5" id="aYx-nC-Hsq"/>
+                <constraint firstItem="q6Y-ok-z0V" firstAttribute="leading" secondItem="IHY-tg-LLn" secondAttribute="leading" id="any-aM-O02"/>
+                <constraint firstItem="kyi-82-tau" firstAttribute="top" secondItem="IHY-tg-LLn" secondAttribute="top" constant="5" id="cbo-BF-nmR"/>
+                <constraint firstItem="kyi-82-tau" firstAttribute="leading" secondItem="IHY-tg-LLn" secondAttribute="leading" constant="5" id="eU2-rB-Slw"/>
+                <constraint firstItem="IHY-tg-LLn" firstAttribute="bottom" secondItem="q6Y-ok-z0V" secondAttribute="bottom" id="gkh-x9-khp"/>
+                <constraint firstItem="IHY-tg-LLn" firstAttribute="trailing" secondItem="kyi-82-tau" secondAttribute="trailing" constant="5" id="hGE-sn-97J"/>
+                <constraint firstItem="IHY-tg-LLn" firstAttribute="bottom" secondItem="kUV-Ds-Cp0" secondAttribute="bottom" constant="5" id="hZr-Do-zh2"/>
+                <constraint firstItem="kUV-Ds-Cp0" firstAttribute="top" secondItem="kyi-82-tau" secondAttribute="bottom" constant="5" id="qif-M5-WcJ"/>
+            </constraints>
+            <freeformSimulatedSizeMetrics key="simulatedDestinationMetrics"/>
+            <viewLayoutGuide key="safeArea" id="IHY-tg-LLn"/>
+            <point key="canvasLocation" x="205" y="255.5"/>
         </view>
     </objects>
 </document>

+ 15 - 0
Redant Drivers/Apex And Drivers/Home/RAHomeHeaderView.h

@@ -0,0 +1,15 @@
+//
+//  RAHomeHeaderView.h
+//  Apex And Drivers
+//
+//  Created by Jack on 2018/9/10.
+//  Copyright © 2018年 USAI. All rights reserved.
+//
+
+#import <UIKit/UIKit.h>
+
+@interface RAHomeHeaderView : UIView
+
++ (instancetype)homeHeader;
+
+@end

+ 21 - 0
Redant Drivers/Apex And Drivers/Home/RAHomeHeaderView.m

@@ -0,0 +1,21 @@
+//
+//  RAHomeHeaderView.m
+//  Apex And Drivers
+//
+//  Created by Jack on 2018/9/10.
+//  Copyright © 2018年 USAI. All rights reserved.
+//
+
+#import "RAHomeHeaderView.h"
+
+@implementation RAHomeHeaderView
+
++ (instancetype)homeHeader {
+    return [[[NSBundle mainBundle] loadNibNamed:@"HomeHeader" owner:nil options:nil] objectAtIndex:1];
+}
+
+- (void)awakeFromNib {
+    [super awakeFromNib];
+}
+
+@end

+ 5 - 0
Redant Drivers/Apex And Drivers/Home/RAHomeViewController.m

@@ -14,6 +14,7 @@
 #import <UserNotifications/UserNotifications.h>
 #import "UIScrollView+Empty.h"
 #import "RAEmptyView.h"
+#import "RAHomeHeaderView.h"
 
 @implementation RAHomeSectionModel
 
@@ -142,6 +143,10 @@
     self.homeOrderTableView.emptyView = [RAEmptyView emptyViewWithTapBlk:^(id sender) {
         [weakSelf loadData];
     }];
+    
+    // Header
+    RAHomeHeaderView *header = [RAHomeHeaderView homeHeader];
+    self.homeOrderTableView.tableHeaderView = header;
 }
 
 - (void)configureNavigationBar {