Sfoglia il codice sorgente

1.修改PageViewController旋转,解决旋转后第二视图覆盖当前视图部分。

Pen Li 9 anni fa
parent
commit
47748cc1e4

BIN
Ants Contract/AntsContract.xcworkspace/xcuserdata/macmini1.xcuserdatad/UserInterfaceState.xcuserstate


+ 1 - 1
Ants Contract/Granite Expo eSign/Granite Expo eSign.xcodeproj/xcuserdata/macmini1.xcuserdatad/xcschemes/eSign.xcscheme

@@ -42,7 +42,7 @@
       </AdditionalOptions>
    </TestAction>
    <LaunchAction
-      buildConfiguration = "Debug"
+      buildConfiguration = "Release"
       selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
       selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
       launchStyle = "0"

+ 3 - 3
Ants Contract/common/PageViewController.m

@@ -188,13 +188,13 @@ typedef enum {
 
 - (void)rotateView {
 
-    
+    if (self.orientation == self.currentAppOrientation) return;
     [self viewWillLayoutSubviews];
     
     self.orientation = self.currentAppOrientation;
     
     for (UIViewController *vc in self.parentViewController.childViewControllers) {
-        [vc viewDidLayoutSubviews];
+        [vc viewWillLayoutSubviews];
     }
     
 }
@@ -412,7 +412,7 @@ typedef enum {
 -(void)didRotateFromInterfaceOrientation:(UIInterfaceOrientation)fromInterfaceOrientation
 {
 
-    [self rotateView];
+//    [self rotateView];
     
 //    [self initControl];
 ////    [self.pdfPageView setNeedsLayout];