mirror of
https://github.com/viq/NewsBlur.git
synced 2025-09-18 21:43:31 +00:00
parent
fbedad1c7e
commit
bbbe9601e3
2 changed files with 0 additions and 29 deletions
|
@ -104,7 +104,6 @@
|
|||
- (void)updateStatusBarState;
|
||||
- (void)setNavigationBarHidden:(BOOL)hide;
|
||||
- (void)setNavigationBarHidden:(BOOL)hide alsoTraverse:(BOOL)alsoTraverse;
|
||||
- (void)adjustDragBar:(UIInterfaceOrientation)orientation;
|
||||
|
||||
//- (void)transitionFromFeedDetail;
|
||||
- (void)resetPages;
|
||||
|
|
|
@ -351,7 +351,6 @@
|
|||
|
||||
UIInterfaceOrientation orientation = self.view.window.windowScene.interfaceOrientation;
|
||||
[self layoutForInterfaceOrientation:orientation];
|
||||
[self adjustDragBar:orientation];
|
||||
[self reorientPages];
|
||||
}
|
||||
|
||||
|
@ -433,7 +432,6 @@
|
|||
UIInterfaceOrientation orientation = self.view.window.windowScene.interfaceOrientation;
|
||||
self->_orientation = orientation;
|
||||
[self layoutForInterfaceOrientation:orientation];
|
||||
[self adjustDragBar:orientation];
|
||||
[self reorientPages];
|
||||
} completion:^(id<UIViewControllerTransitionCoordinatorContext> _Nonnull context) {
|
||||
// NSLog(@"---> Story page control did re-orient: %@ / %@", NSStringFromCGSize(self.scrollView.bounds.size), NSStringFromCGSize(size));
|
||||
|
@ -474,7 +472,6 @@
|
|||
|
||||
UIInterfaceOrientation orientation = self.view.window.windowScene.interfaceOrientation;
|
||||
[self layoutForInterfaceOrientation:orientation];
|
||||
[self adjustDragBar:orientation];
|
||||
}
|
||||
|
||||
- (BOOL)shouldHideStatusBar {
|
||||
|
@ -607,31 +604,6 @@
|
|||
return ![otherGestureRecognizer isKindOfClass:[UIScreenEdgePanGestureRecognizer class]];
|
||||
}
|
||||
|
||||
- (void)adjustDragBar:(UIInterfaceOrientation)orientation {
|
||||
// CGRect scrollViewFrame = self.scrollView.frame;
|
||||
// CGRect traverseViewFrame = self.traverseView.frame;
|
||||
|
||||
if (self.isPhoneOrCompact ||
|
||||
UIInterfaceOrientationIsLandscape(orientation)) {
|
||||
// scrollViewFrame.size.height = self.scrollView.bounds.size.height;
|
||||
// self.bottomSize.hidden = YES;
|
||||
[self.bottomSizeHeightConstraint setConstant:0];
|
||||
[self.scrollBottomConstraint setConstant:0];
|
||||
[bottomSize setHidden:YES];
|
||||
} else {
|
||||
// scrollViewFrame.size.height = self.scrollView.bounds.size.height - 12;
|
||||
// self.bottomSize.hidden = NO;
|
||||
[self.bottomSizeHeightConstraint setConstant:12];
|
||||
[self.scrollBottomConstraint setConstant:-12];
|
||||
[bottomSize setHidden:NO];
|
||||
}
|
||||
|
||||
[self.view layoutIfNeeded];
|
||||
// self.scrollView.frame = scrollViewFrame;
|
||||
// traverseViewFrame.origin.y = scrollViewFrame.size.height - traverseViewFrame.size.height;
|
||||
// self.traverseView.frame = traverseViewFrame;
|
||||
}
|
||||
|
||||
- (void)highlightButton:(UIButton *)b {
|
||||
if (![b isKindOfClass:[UIButton class]]) return;
|
||||
[b setHighlighted:YES];
|
||||
|
|
Loading…
Add table
Reference in a new issue