Bladeren bron

1.修改iOS Apex Mobile KPI标签项高度。

Pen Li 8 jaren geleden
bovenliggende
commit
20a205d373
2 gewijzigde bestanden met toevoegingen van 10 en 3 verwijderingen
  1. 4 0
      Apex Mobile/Apex Mobile/KPICell.m
  2. 6 3
      Apex Mobile/Apex Mobile/KPILegendCell.xib

+ 4 - 0
Apex Mobile/Apex Mobile/KPICell.m

@@ -390,6 +390,10 @@
     return row;
 }
 
+- (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath {
+    return 44.0f;
+}
+
 - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
     
     KPILegendCell *cell = [tableView dequeueReusableCellWithIdentifier:@"KPILegndCell" forIndexPath:indexPath];

+ 6 - 3
Apex Mobile/Apex Mobile/KPILegendCell.xib

@@ -11,7 +11,7 @@
     <objects>
         <placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner"/>
         <placeholder placeholderIdentifier="IBFirstResponder" id="-2" customClass="UIResponder"/>
-        <tableViewCell clipsSubviews="YES" contentMode="scaleToFill" preservesSuperviewLayoutMargins="YES" selectionStyle="none" indentationWidth="10" reuseIdentifier="KPILegndCell" id="42d-ZC-jas" customClass="KPILegendCell">
+        <tableViewCell clipsSubviews="YES" contentMode="scaleToFill" preservesSuperviewLayoutMargins="YES" selectionStyle="none" indentationWidth="10" reuseIdentifier="KPILegndCell" rowHeight="44" id="42d-ZC-jas" customClass="KPILegendCell">
             <rect key="frame" x="0.0" y="0.0" width="374" height="44"/>
             <autoresizingMask key="autoresizingMask"/>
             <tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" preservesSuperviewLayoutMargins="YES" insetsLayoutMarginsFromSafeArea="NO" tableViewCell="42d-ZC-jas" id="LG3-Gd-WdO">
@@ -19,19 +19,22 @@
                 <autoresizingMask key="autoresizingMask"/>
                 <subviews>
                     <button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="Sun-HC-YBP" customClass="KPIButton">
-                        <rect key="frame" x="5" y="5" width="179.5" height="34"/>
+                        <rect key="frame" x="5" y="2" width="179.5" height="39.5"/>
                     </button>
                     <button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="BFw-JA-akt" customClass="KPIButton">
-                        <rect key="frame" x="189.5" y="5" width="179.5" height="34"/>
+                        <rect key="frame" x="189.5" y="2" width="179.5" height="39.5"/>
                     </button>
                 </subviews>
                 <constraints>
                     <constraint firstItem="Sun-HC-YBP" firstAttribute="centerY" secondItem="LG3-Gd-WdO" secondAttribute="centerY" id="2w8-R2-58j"/>
                     <constraint firstItem="BFw-JA-akt" firstAttribute="centerY" secondItem="LG3-Gd-WdO" secondAttribute="centerY" id="3JH-bS-V3s"/>
                     <constraint firstAttribute="trailing" secondItem="BFw-JA-akt" secondAttribute="trailing" constant="5" id="5df-RT-mDc"/>
+                    <constraint firstAttribute="bottom" secondItem="Sun-HC-YBP" secondAttribute="bottom" constant="2" id="5pM-FA-aAo"/>
                     <constraint firstItem="BFw-JA-akt" firstAttribute="leading" secondItem="Sun-HC-YBP" secondAttribute="trailing" constant="5" id="GPK-3B-Bhg"/>
                     <constraint firstItem="Sun-HC-YBP" firstAttribute="leading" secondItem="LG3-Gd-WdO" secondAttribute="leading" constant="5" id="KRt-w8-Orj"/>
+                    <constraint firstItem="Sun-HC-YBP" firstAttribute="top" secondItem="LG3-Gd-WdO" secondAttribute="top" constant="2" id="R4e-P6-pe7"/>
                     <constraint firstItem="BFw-JA-akt" firstAttribute="width" secondItem="Sun-HC-YBP" secondAttribute="width" id="WE4-rB-v7C"/>
+                    <constraint firstItem="BFw-JA-akt" firstAttribute="height" secondItem="Sun-HC-YBP" secondAttribute="height" id="gsI-QG-etM"/>
                 </constraints>
             </tableViewCellContentView>
             <connections>