We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
We ran into issues where the shadow does not change on rotation.
For us, we pulled the shadow draw methods up to the root view controller, but here's what we did:
We need to redraw the shadow on rotation. We added a delegate method that redraws the menu on the completion of a rotation.
- (void)viewWillTransitionToSize:(CGSize)size withTransitionCoordinator:(id<UIViewControllerTransitionCoordinator>)coordinator { [coordinator animateAlongsideTransition:^(id<UIViewControllerTransitionCoordinatorContext> context) { } completion:^(id<UIViewControllerTransitionCoordinatorContext> context) { if(self.shadowEnabled) [self drawMenuShadows]; }]; [super viewWillTransitionToSize:size withTransitionCoordinator:coordinator]; }
Since we're redrawing the menu at the end of the rotation, and interfaceOrientation is deprecated at iOS 8, we could return only the width and height.
interfaceOrientation
- (CGSize)sizeAdjustedForInterfaceOrientation:(UIView *)view { return CGSizeMake(view.frame.size.width, view.frame.size.height); }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
We ran into issues where the shadow does not change on rotation.
Possible Solution
For us, we pulled the shadow draw methods up to the root view controller, but here's what we did:
We need to redraw the shadow on rotation.
We added a delegate method that redraws the menu on the completion of a rotation.
Since we're redrawing the menu at the end of the rotation, and
interfaceOrientation
is deprecated at iOS 8, we could return only the width and height.The text was updated successfully, but these errors were encountered: