Browse Source

Apex Mobile

优化 detail list 显示
Ray Zhang 8 năm trước cách đây
mục cha
commit
0924eb45d0

BIN
Apex Mobile/Apex Mobile.xcodeproj/project.xcworkspace/xcuserdata/Ray.xcuserdatad/UserInterfaceState.xcuserstate


+ 7 - 7
Apex Mobile/Apex Mobile.xcodeproj/xcuserdata/Ray.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist

@@ -10,7 +10,7 @@
             ignoreCount = "0"
             continueAfterRunningActions = "No"
             filePath = "Apex Mobile/DetailPageViewController.m"
-            timestampString = "540111701.82455"
+            timestampString = "540118094.887267"
             startingColumnNumber = "9223372036854775807"
             endingColumnNumber = "9223372036854775807"
             startingLineNumber = "849"
@@ -26,7 +26,7 @@
             ignoreCount = "0"
             continueAfterRunningActions = "No"
             filePath = "../RedAnt ERP Mobile/common/customUI/MDHTMLLabel.m"
-            timestampString = "540111701.826377"
+            timestampString = "540118094.888236"
             startingColumnNumber = "9223372036854775807"
             endingColumnNumber = "9223372036854775807"
             startingLineNumber = "419"
@@ -42,7 +42,7 @@
             ignoreCount = "0"
             continueAfterRunningActions = "No"
             filePath = "Apex Mobile/DetailPageViewController.m"
-            timestampString = "540111701.827796"
+            timestampString = "540118094.888483"
             startingColumnNumber = "9223372036854775807"
             endingColumnNumber = "9223372036854775807"
             startingLineNumber = "502"
@@ -58,7 +58,7 @@
             ignoreCount = "0"
             continueAfterRunningActions = "No"
             filePath = "Apex Mobile/DetailPageViewController.m"
-            timestampString = "540111701.828728"
+            timestampString = "540118094.888791"
             startingColumnNumber = "9223372036854775807"
             endingColumnNumber = "9223372036854775807"
             startingLineNumber = "519"
@@ -74,7 +74,7 @@
             ignoreCount = "0"
             continueAfterRunningActions = "No"
             filePath = "Apex Mobile/DetailPageViewController.m"
-            timestampString = "540111701.829188"
+            timestampString = "540118094.889083"
             startingColumnNumber = "9223372036854775807"
             endingColumnNumber = "9223372036854775807"
             startingLineNumber = "525"
@@ -90,7 +90,7 @@
             ignoreCount = "0"
             continueAfterRunningActions = "No"
             filePath = "Apex Mobile/DetailPageViewController.m"
-            timestampString = "540111701.829576"
+            timestampString = "540118094.889333"
             startingColumnNumber = "9223372036854775807"
             endingColumnNumber = "9223372036854775807"
             startingLineNumber = "528"
@@ -106,7 +106,7 @@
             ignoreCount = "0"
             continueAfterRunningActions = "No"
             filePath = "Apex Mobile/DetailPageViewController.m"
-            timestampString = "540111701.829908"
+            timestampString = "540118094.889578"
             startingColumnNumber = "9223372036854775807"
             endingColumnNumber = "9223372036854775807"
             startingLineNumber = "853"

+ 2 - 2
Apex Mobile/Apex Mobile/DetailPageViewController.m

@@ -626,7 +626,7 @@
         //        frame.origin.y=0;
         
         
-        CGSize sizeText = [text sizeWithFont:[UIFont systemFontOfSize:17.0] constrainedToSize:constraintval lineBreakMode:NSLineBreakByWordWrapping];
+        CGSize sizeText = [text sizeWithFont:[UIFont systemFontOfSize:13.0] constrainedToSize:constraintval lineBreakMode:NSLineBreakByWordWrapping];
         //           CGSize sizeval = [val sizeWithFont:[UIFont systemFontOfSize:17.0] constrainedToSize:constraintval lineBreakMode:NSLineBreakByWordWrapping];
         float height = sizeText.height;
         height = MAX(height+LINE_WIDTH, DEF_CELL_HEIGHT);
@@ -1002,7 +1002,7 @@
         
         
         
-        CGSize sizeval = [val sizeWithFont:[UIFont systemFontOfSize:17.0] constrainedToSize:constraintkey lineBreakMode:NSLineBreakByWordWrapping];
+        CGSize sizeval = [val sizeWithFont:[UIFont systemFontOfSize:13.0] constrainedToSize:constraintkey lineBreakMode:NSLineBreakByWordWrapping];
         
         
         float height = sizeval.height;

+ 4 - 12
Apex Mobile/Apex Mobile/Main.storyboard

@@ -1625,21 +1625,13 @@
                                             <rect key="frame" x="0.0" y="0.0" width="375" height="43.5"/>
                                             <autoresizingMask key="autoresizingMask"/>
                                             <subviews>
-                                                <label opaque="NO" clipsSubviews="YES" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Label" lineBreakMode="wordWrap" numberOfLines="0" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="Fv6-ui-cri">
-                                                    <rect key="frame" x="15" y="11" width="345" height="20.5"/>
-                                                    <constraints>
-                                                        <constraint firstAttribute="width" constant="345" id="fXi-qE-V7M"/>
-                                                    </constraints>
-                                                    <fontDescription key="fontDescription" type="system" pointSize="17"/>
+                                                <label opaque="NO" clipsSubviews="YES" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" fixedFrame="YES" text="Label" lineBreakMode="wordWrap" numberOfLines="0" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="Fv6-ui-cri">
+                                                    <rect key="frame" x="15" y="8" width="345" height="28"/>
+                                                    <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
+                                                    <fontDescription key="fontDescription" type="system" pointSize="13"/>
                                                     <nil key="highlightedColor"/>
                                                 </label>
                                             </subviews>
-                                            <constraints>
-                                                <constraint firstItem="Fv6-ui-cri" firstAttribute="top" secondItem="q9z-Ac-77Z" secondAttribute="top" constant="11" id="5tm-gs-Z7s"/>
-                                                <constraint firstAttribute="trailing" secondItem="Fv6-ui-cri" secondAttribute="trailing" constant="15" id="OGl-aF-J0a"/>
-                                                <constraint firstAttribute="bottom" secondItem="Fv6-ui-cri" secondAttribute="bottom" constant="12" id="dG3-li-ZuZ"/>
-                                                <constraint firstItem="Fv6-ui-cri" firstAttribute="leading" secondItem="q9z-Ac-77Z" secondAttribute="leading" constant="15" id="rTY-Cx-nhs"/>
-                                            </constraints>
                                         </tableViewCellContentView>
                                         <color key="backgroundColor" cocoaTouchSystemColor="tableCellGroupedBackgroundColor"/>
                                         <connections>

+ 1 - 1
Apex Mobile/Apex Mobile/config.h

@@ -12,7 +12,7 @@
 
 # ifdef DEBUG
 
-#define test_server
+//#define test_server
 
 # endif
 

+ 2 - 2
common/customUI/ResultViewController.m

@@ -467,7 +467,7 @@ const int delta = 25;
         headerlabel.font = [UIFont boldSystemFontOfSize:20];
         //        [headerlabel sizeToFit];
         
-        headerlabel.layer.borderWidth=0.5;
+        headerlabel.layer.borderWidth=0.3;
         [myView addSubview:headerlabel];
         x+=width;
     }
@@ -622,7 +622,7 @@ const int delta = 25;
             vallabel.htmlText = text;
             vallabel.textAlignment= [self get_TextHAlign:arr_col[i][@"h_align"] ];
             
-            vallabel.layer.borderWidth=0.5;
+            vallabel.layer.borderWidth=0.3;
             
            // UITapGestureRecognizer *gestureRecognizer = [[UITapGestureRecognizer alloc]initWithTarget:self action:@selector(labelTapAction:)];