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