Przeglądaj źródła

1.修改iOS CommonEditor Range Cell,调整按钮位置。

Pen Li 8 lat temu
rodzic
commit
15a9d842f6

+ 21 - 22
RedAnt ERP Mobile/common/CommonEditor/Phone_Range_Cell.xib

@@ -56,8 +56,19 @@
                                 <nil key="textColor"/>
                                 <nil key="highlightedColor"/>
                             </label>
+                            <textField opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="left" contentVerticalAlignment="center" borderStyle="roundedRect" placeholder="maximum" textAlignment="center" minimumFontSize="17" translatesAutoresizingMaskIntoConstraints="NO" id="KbR-4N-5h0">
+                                <rect key="frame" x="15" y="10" width="99" height="30"/>
+                                <nil key="textColor"/>
+                                <fontDescription key="fontDescription" type="system" pointSize="14"/>
+                                <textInputTraits key="textInputTraits"/>
+                                <connections>
+                                    <outlet property="delegate" destination="aJD-4w-cyc" id="Ocj-RG-iEh"/>
+                                </connections>
+                            </textField>
                         </subviews>
                         <constraints>
+                            <constraint firstItem="KbR-4N-5h0" firstAttribute="leading" secondItem="Q11-bU-Foq" secondAttribute="leading" constant="15" id="7jT-8h-5S0"/>
+                            <constraint firstAttribute="trailing" secondItem="KbR-4N-5h0" secondAttribute="trailing" constant="5" id="ZSL-TY-TMr"/>
                             <constraint firstItem="1PI-fx-jjn" firstAttribute="centerX" secondItem="Q11-bU-Foq" secondAttribute="centerX" id="g8z-SD-r0y"/>
                             <constraint firstItem="1PI-fx-jjn" firstAttribute="centerY" secondItem="Q11-bU-Foq" secondAttribute="centerY" id="ls2-kR-YQf"/>
                             <constraint firstItem="1PI-fx-jjn" firstAttribute="height" secondItem="Q11-bU-Foq" secondAttribute="height" id="p3c-EA-z2W"/>
@@ -67,41 +78,29 @@
                     <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="rOL-53-jIq">
                         <rect key="frame" x="238" y="49" width="119" height="50"/>
                         <subviews>
-                            <textField opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="left" contentVerticalAlignment="center" borderStyle="roundedRect" placeholder="maximum" textAlignment="center" minimumFontSize="17" translatesAutoresizingMaskIntoConstraints="NO" id="KbR-4N-5h0">
-                                <rect key="frame" x="5" y="10" width="99" height="30"/>
-                                <nil key="textColor"/>
+                            <button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="p7c-IA-NlC">
+                                <rect key="frame" x="41" y="11" width="37" height="29"/>
                                 <fontDescription key="fontDescription" type="system" pointSize="14"/>
-                                <textInputTraits key="textInputTraits"/>
+                                <state key="normal" title="Reset">
+                                    <color key="titleColor" white="0.0" alpha="1" colorSpace="calibratedWhite"/>
+                                </state>
                                 <connections>
-                                    <outlet property="delegate" destination="aJD-4w-cyc" id="Ocj-RG-iEh"/>
+                                    <action selector="resetBtnClick:" destination="aJD-4w-cyc" eventType="touchUpInside" id="xsH-dG-PoR"/>
                                 </connections>
-                            </textField>
+                            </button>
                         </subviews>
                         <constraints>
-                            <constraint firstItem="KbR-4N-5h0" firstAttribute="centerY" secondItem="rOL-53-jIq" secondAttribute="centerY" id="Vsk-kp-hBo"/>
-                            <constraint firstAttribute="trailing" secondItem="KbR-4N-5h0" secondAttribute="trailing" constant="15" id="eou-0I-5tB"/>
-                            <constraint firstItem="KbR-4N-5h0" firstAttribute="leading" secondItem="rOL-53-jIq" secondAttribute="leading" constant="5" id="lmQ-hA-BiX"/>
+                            <constraint firstItem="p7c-IA-NlC" firstAttribute="centerY" secondItem="rOL-53-jIq" secondAttribute="centerY" id="Z9g-6U-xKT"/>
+                            <constraint firstItem="p7c-IA-NlC" firstAttribute="centerX" secondItem="rOL-53-jIq" secondAttribute="centerX" id="ng2-fH-XHx"/>
                         </constraints>
                     </view>
-                    <button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="p7c-IA-NlC">
-                        <rect key="frame" x="310" y="7.5" width="37" height="29"/>
-                        <fontDescription key="fontDescription" type="system" pointSize="14"/>
-                        <state key="normal" title="Reset">
-                            <color key="titleColor" white="0.0" alpha="1" colorSpace="calibratedWhite"/>
-                        </state>
-                        <connections>
-                            <action selector="resetBtnClick:" destination="aJD-4w-cyc" eventType="touchUpInside" id="xsH-dG-PoR"/>
-                        </connections>
-                    </button>
                 </subviews>
                 <constraints>
                     <constraint firstAttribute="trailing" secondItem="rOL-53-jIq" secondAttribute="trailing" id="0vF-B6-YXR"/>
                     <constraint firstAttribute="bottom" secondItem="N9F-9d-jEW" secondAttribute="bottom" id="2id-Sv-R7P"/>
-                    <constraint firstItem="p7c-IA-NlC" firstAttribute="leading" relation="greaterThanOrEqual" secondItem="F7m-IY-bAy" secondAttribute="trailing" constant="5" id="3ce-57-0fo"/>
-                    <constraint firstAttribute="trailing" secondItem="p7c-IA-NlC" secondAttribute="trailing" constant="10" id="8aa-sk-MMn"/>
+                    <constraint firstItem="KbR-4N-5h0" firstAttribute="centerY" secondItem="OLV-dS-Zk9" secondAttribute="centerY" id="9xZ-I0-18Y"/>
                     <constraint firstItem="Q11-bU-Foq" firstAttribute="height" secondItem="N9F-9d-jEW" secondAttribute="height" id="C7p-gp-g1c"/>
                     <constraint firstItem="rOL-53-jIq" firstAttribute="width" secondItem="Q11-bU-Foq" secondAttribute="width" id="HX1-uj-OmR"/>
-                    <constraint firstItem="p7c-IA-NlC" firstAttribute="centerY" secondItem="F7m-IY-bAy" secondAttribute="centerY" id="LQU-fi-DRv"/>
                     <constraint firstItem="N9F-9d-jEW" firstAttribute="leading" secondItem="9H1-uc-YO6" secondAttribute="leading" id="Ph9-ME-LZT"/>
                     <constraint firstItem="Q11-bU-Foq" firstAttribute="top" secondItem="N9F-9d-jEW" secondAttribute="top" id="ScF-do-uCY"/>
                     <constraint firstItem="Q11-bU-Foq" firstAttribute="leading" secondItem="N9F-9d-jEW" secondAttribute="trailing" id="bH9-pn-eAF"/>