Ray Zhang 9 лет назад
Родитель
Сommit
e53456adae

BIN
Ants Contract/AntsContract/AntsContract.xcodeproj/project.xcworkspace/xcuserdata/Ray.xcuserdatad/UserInterfaceState.xcuserstate


+ 16 - 0
Ants Contract/AntsContract/AntsContract.xcodeproj/xcuserdata/Ray.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist

@@ -723,5 +723,21 @@
             landmarkType = "7">
          </BreakpointContent>
       </BreakpointProxy>
+      <BreakpointProxy
+         BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
+         <BreakpointContent
+            shouldBeEnabled = "Yes"
+            ignoreCount = "0"
+            continueAfterRunningActions = "No"
+            filePath = "../../RedAnt ERP Mobile/common/PDFUtils.m"
+            timestampString = "504156408.812316"
+            startingColumnNumber = "9223372036854775807"
+            endingColumnNumber = "9223372036854775807"
+            startingLineNumber = "214"
+            endingLineNumber = "214"
+            landmarkName = "+SavePDF:source:window_rect:"
+            landmarkType = "7">
+         </BreakpointContent>
+      </BreakpointProxy>
    </Breakpoints>
 </Bucket>

+ 2 - 3
Ants Contract/AntsContract/AntsContract/Base.lproj/Main.storyboard

@@ -97,7 +97,7 @@
                                             <view contentMode="scaleToFill" id="8Hw-OZ-rsH" customClass="PDFPageView">
                                                 <rect key="frame" x="0.0" y="0.0" width="768" height="960"/>
                                                 <autoresizingMask key="autoresizingMask" flexibleMinX="YES" widthSizable="YES" flexibleMaxX="YES" flexibleMinY="YES" heightSizable="YES" flexibleMaxY="YES"/>
-                                                <color key="backgroundColor" red="1" green="1" blue="0.0" alpha="1" colorSpace="calibratedRGB"/>
+                                                <color key="backgroundColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
                                             </view>
                                             <view contentMode="scaleToFill" id="wPo-qh-F4Q" customClass="EditControlView">
                                                 <rect key="frame" x="0.0" y="0.0" width="768" height="960"/>
@@ -105,7 +105,7 @@
                                                 <color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="calibratedWhite"/>
                                             </view>
                                         </subviews>
-                                        <color key="backgroundColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
+                                        <color key="backgroundColor" red="1" green="1" blue="0.0" alpha="1" colorSpace="calibratedRGB"/>
                                     </view>
                                 </subviews>
                                 <color key="backgroundColor" red="0.0" green="0.47843137250000001" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
@@ -117,7 +117,6 @@
                         <color key="backgroundColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
                     </view>
                     <toolbarItems/>
-                    <simulatedNavigationBarMetrics key="simulatedTopBarMetrics" prompted="NO"/>
                     <connections>
                         <outlet property="editControlView" destination="wPo-qh-F4Q" id="7Pl-zR-eDR"/>
                         <outlet property="pdfPageView" destination="8Hw-OZ-rsH" id="xWX-ds-e1V"/>

+ 2 - 2
Ants Contract/AntsContract/AntsContract/DocumentPageViewController.m

@@ -153,7 +153,7 @@
     
 }
 - (IBAction)onSaveClicked:(id)sender {
-    [PDFUtils SavePDF:self.controlTemplate source:self.document];
+    [PDFUtils SavePDF:self.controlTemplate source:self.document window_rect:CGRectMake(0, 0, 786, 960)];
   //  [PDFUtils savep
 }
 
@@ -310,7 +310,7 @@
 //    
 //    return UIPageViewControllerSpineLocationMid;
 }
-#pragma mark pdf utils
+
 
 
 @end