diff --git a/clients/ios/Classes/StoryDetailViewController.m b/clients/ios/Classes/StoryDetailViewController.m index ef5ebb48a..d5bfaed11 100644 --- a/clients/ios/Classes/StoryDetailViewController.m +++ b/clients/ios/Classes/StoryDetailViewController.m @@ -233,22 +233,6 @@ }]; } -- (void)willRotateToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation duration:(NSTimeInterval)duration { - preRotateSize = webView.scrollView.contentSize; - NSLog(@"Height is %@ (Offset is %@)", @(preRotateSize.height), @(webView.scrollView.contentOffset.y)); -} - -- (void)didRotateFromInterfaceOrientation:(UIInterfaceOrientation)fromInterfaceOrientation { - [self drawFeedGradient]; - - CGSize newSize = webView.scrollView.contentSize; - CGPoint newOffset = webView.scrollView.contentOffset; - CGFloat preOffset = newOffset.y; - newOffset.y *= newSize.height / preRotateSize.height; - NSLog(@"Height was %@, now %@ (Offset was %@, now %@)", @(preRotateSize.height), @(newSize.height), @(preOffset), @(newOffset.y)); -// webView.scrollView.contentOffset = newOffset; -} - #pragma mark - #pragma mark Story setup diff --git a/clients/ios/Classes/StoryPageControl.m b/clients/ios/Classes/StoryPageControl.m index e2fb1f05f..f89cf873a 100644 --- a/clients/ios/Classes/StoryPageControl.m +++ b/clients/ios/Classes/StoryPageControl.m @@ -331,31 +331,6 @@ [super viewWillTransitionToSize:size withTransitionCoordinator:coordinator]; } -- (void)didRotateFromInterfaceOrientation:(UIInterfaceOrientation)fromInterfaceOrientation { - -// CGPoint scrollPosition = CGPointMake(0, scrollPct * currentPage.webView.scrollView.contentSize.height); -// NSLog(@"Scrolling to %2.2f%% of %.0f", scrollPct*100, currentPage.webView.scrollView.contentSize.height); -// -// [currentPage.webView.scrollView setContentOffset:scrollPosition animated:YES]; - inRotation = NO; -} - -- (void)willAnimateRotationToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation - duration:(NSTimeInterval)duration { - inRotation = YES; - - if (UIInterfaceOrientationIsPortrait(toInterfaceOrientation)) { - NSLog(@"Rotating to portrait: %.0f,%.0f",self.view.frame.size.width,self.view.frame.size.height); - - } else if (UIInterfaceOrientationIsLandscape(toInterfaceOrientation)){ - NSLog(@"Rotating to landscape: %.0f,%.0f",self.view.frame.size.width,self.view.frame.size.height); - } - - [self layoutForInterfaceOrientation:toInterfaceOrientation]; - [self adjustDragBar:toInterfaceOrientation]; -// [self reorientPages:toInterfaceOrientation]; -} - - (void)layoutForInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation { // if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad && // appDelegate.masterContainerViewController.originalViewIsVisible) { diff --git a/clients/ios/NewsBlur_Prefix.pch b/clients/ios/NewsBlur_Prefix.pch index cce13f969..e510fba2d 100644 --- a/clients/ios/NewsBlur_Prefix.pch +++ b/clients/ios/NewsBlur_Prefix.pch @@ -5,7 +5,7 @@ #import #import -#define DEBUG 1 +//#define DEBUG 1 //#define PROD_DEBUG 1 #ifdef DEBUG