Skip to content

Commit

Permalink
Fixed rotation layout bug
Browse files Browse the repository at this point in the history
  • Loading branch information
rolandleth committed Aug 19, 2017
1 parent 96f3cfb commit dca58f5
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion LTHPasscodeViewController/LTHPasscodeViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -516,6 +516,12 @@ - (void)viewWillAppear:(BOOL)animated {
}


- (void)viewWillLayoutSubviews {
[super viewWillLayoutSubviews];
_animatingView.frame = self.view.bounds;
}


- (void)viewWillDisappear:(BOOL)animated {
// If _isCurrentlyOnScreen is true at this point,
// it means the back button was tapped, so we need to reset.
Expand Down Expand Up @@ -1805,7 +1811,7 @@ - (void)statusBarFrameOrOrientationChanged:(NSNotification *)notification {
*/
[self rotateAccordingToStatusBarOrientationAndSupportedOrientations];
if (LTHiOS8) {
_animatingView.frame = self.view.frame;
_animatingView.frame = self.view.bounds;
}
else {
if (UIInterfaceOrientationIsPortrait([UIApplication sharedApplication].statusBarOrientation)) {
Expand Down

0 comments on commit dca58f5

Please sign in to comment.