Преглед изворни кода

1.修改iOS Apex Mobile Person Mode切换刷新KPI。

Pen Li пре 8 година
родитељ
комит
1b7b4109d5
2 измењених фајлова са 11 додато и 10 уклоњено
  1. 1 0
      Apex Mobile/Apex Mobile/HomeViewController.m
  2. 10 10
      Apex Mobile/Apex Mobile/Main.storyboard

+ 1 - 0
Apex Mobile/Apex Mobile/HomeViewController.m

@@ -216,6 +216,7 @@ typedef enum {
     NSLog(@"Home Person Mode Change");
     
     [self loadData];
+    [self loadKPIData];
 }
 
 - (void)loadData {

+ 10 - 10
Apex Mobile/Apex Mobile/Main.storyboard

@@ -287,10 +287,10 @@
                         <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
                         <subviews>
                             <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="CoA-Tq-6Qs">
-                                <rect key="frame" x="0.0" y="94" width="375" height="524"/>
+                                <rect key="frame" x="0.0" y="104" width="375" height="514"/>
                                 <subviews>
                                     <tableView clipsSubviews="YES" contentMode="scaleToFill" alwaysBounceVertical="YES" dataMode="prototypes" style="plain" separatorStyle="default" rowHeight="-1" estimatedRowHeight="-1" sectionHeaderHeight="28" sectionFooterHeight="28" translatesAutoresizingMaskIntoConstraints="NO" id="5aj-tl-FN7">
-                                        <rect key="frame" x="0.0" y="0.0" width="375" height="524"/>
+                                        <rect key="frame" x="0.0" y="0.0" width="375" height="514"/>
                                         <color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
                                         <connections>
                                             <outlet property="dataSource" destination="ucJ-C2-JJ8" id="sHI-R9-c02"/>
@@ -298,7 +298,7 @@
                                         </connections>
                                     </tableView>
                                     <button hidden="YES" opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="FSX-U7-TKb">
-                                        <rect key="frame" x="132" y="242" width="110" height="40"/>
+                                        <rect key="frame" x="132" y="237" width="110" height="40"/>
                                         <constraints>
                                             <constraint firstAttribute="width" constant="110" id="nD7-1h-tBS"/>
                                             <constraint firstAttribute="height" constant="40" id="nba-D9-tvl"/>
@@ -320,7 +320,7 @@
                                         </connections>
                                     </button>
                                     <activityIndicatorView hidden="YES" opaque="NO" contentMode="scaleToFill" horizontalHuggingPriority="750" verticalHuggingPriority="750" hidesWhenStopped="YES" style="whiteLarge" translatesAutoresizingMaskIntoConstraints="NO" id="JzT-Iw-sPl">
-                                        <rect key="frame" x="167.5" y="242.5" width="40" height="40"/>
+                                        <rect key="frame" x="167.5" y="237.5" width="40" height="40"/>
                                         <constraints>
                                             <constraint firstAttribute="height" constant="40" id="5z1-10-GGb"/>
                                             <constraint firstAttribute="width" constant="40" id="hj6-cC-Pvu"/>
@@ -340,10 +340,10 @@
                                 </constraints>
                             </view>
                             <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="TYb-wc-Nwg">
-                                <rect key="frame" x="0.0" y="94" width="375" height="524"/>
+                                <rect key="frame" x="0.0" y="104" width="375" height="514"/>
                                 <subviews>
                                     <tableView clipsSubviews="YES" contentMode="scaleToFill" alwaysBounceVertical="YES" dataMode="prototypes" style="grouped" rowHeight="-1" estimatedRowHeight="-1" sectionHeaderHeight="18" sectionFooterHeight="18" translatesAutoresizingMaskIntoConstraints="NO" id="iIl-j9-7oa">
-                                        <rect key="frame" x="0.0" y="0.0" width="375" height="524"/>
+                                        <rect key="frame" x="0.0" y="0.0" width="375" height="514"/>
                                         <color key="backgroundColor" cocoaTouchSystemColor="groupTableViewBackgroundColor"/>
                                         <inset key="separatorInset" minX="0.0" minY="0.0" maxX="0.0" maxY="0.0"/>
                                         <connections>
@@ -352,7 +352,7 @@
                                         </connections>
                                     </tableView>
                                     <button hidden="YES" opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="0Al-V9-YKc">
-                                        <rect key="frame" x="117" y="242" width="140" height="40"/>
+                                        <rect key="frame" x="117" y="237" width="140" height="40"/>
                                         <constraints>
                                             <constraint firstAttribute="width" constant="140" id="9UW-08-GTi"/>
                                             <constraint firstAttribute="height" constant="40" id="tfG-C9-CfW"/>
@@ -374,7 +374,7 @@
                                         </connections>
                                     </button>
                                     <activityIndicatorView hidden="YES" opaque="NO" contentMode="scaleToFill" horizontalHuggingPriority="750" verticalHuggingPriority="750" hidesWhenStopped="YES" style="whiteLarge" translatesAutoresizingMaskIntoConstraints="NO" id="IFp-NK-v1o">
-                                        <rect key="frame" x="167.5" y="242.5" width="40" height="40"/>
+                                        <rect key="frame" x="167.5" y="237.5" width="40" height="40"/>
                                         <constraints>
                                             <constraint firstAttribute="height" constant="40" id="36I-ae-Ncc"/>
                                             <constraint firstAttribute="width" constant="40" id="L8H-4i-m7R"/>
@@ -394,7 +394,7 @@
                                 </constraints>
                             </view>
                             <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="3xo-DP-qWN">
-                                <rect key="frame" x="0.0" y="64" width="375" height="30"/>
+                                <rect key="frame" x="0.0" y="74" width="375" height="30"/>
                                 <subviews>
                                     <segmentedControl opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="left" contentVerticalAlignment="top" segmentControlStyle="plain" selectedSegmentIndex="0" translatesAutoresizingMaskIntoConstraints="NO" id="6ie-Rf-Nau">
                                         <rect key="frame" x="0.0" y="0.0" width="375" height="31"/>
@@ -419,7 +419,7 @@
                         <color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
                         <constraints>
                             <constraint firstItem="TYb-wc-Nwg" firstAttribute="top" secondItem="3xo-DP-qWN" secondAttribute="bottom" id="7Q1-xA-m6A"/>
-                            <constraint firstItem="3xo-DP-qWN" firstAttribute="top" secondItem="70L-ql-L3f" secondAttribute="bottom" id="7dN-EO-3Yh"/>
+                            <constraint firstItem="3xo-DP-qWN" firstAttribute="top" secondItem="70L-ql-L3f" secondAttribute="bottom" constant="10" id="7dN-EO-3Yh"/>
                             <constraint firstAttribute="trailing" secondItem="TYb-wc-Nwg" secondAttribute="trailing" id="F3N-vc-FCU"/>
                             <constraint firstAttribute="trailing" secondItem="CoA-Tq-6Qs" secondAttribute="trailing" id="FSs-a2-2km"/>
                             <constraint firstItem="6yV-PD-KCp" firstAttribute="top" secondItem="TYb-wc-Nwg" secondAttribute="bottom" id="GRL-Lc-GfQ"/>