romaonthego / RESideMenu

iOS 7/8 style side menu with parallax effect.
MIT License
7.1k stars 1.35k forks source link

Animation contentViewController wrong statusBarPosition #222

Open NorbertSzydlowski opened 9 years ago

NorbertSzydlowski commented 9 years ago

HI,

I have got custom animation to set contentViewController. It is look like FlipFromRight contentView, close menu after.

My isue is wrong position of navigation bar when menu close. It is shown from top edge view instead 20px status bar height.

UINavigationController *navigationController = [self.storyboard instantiateViewControllerWithIdentifier:SORestaurantsNavigationControllerIdentifier];

[UIView transitionFromView:self.sideMenuViewController.contentViewController.view toView:navigationController.view duration:0.65f options:UIViewAnimationOptionTransitionFlipFromRight completion:^(BOOL finished){ [self closePaneMenu];

                    self.sideMenuViewController.contentViewController = navigationController;

                }];