Comments (3)
I'm not sure I understand your question. Can you clarify and/or provide an example?
from ghsidebarnav.
@Urkman I'm going to close this. Reopen if you find an issue with GHSidebarNav regarding orientation changes.
from ghsidebarnav.
HI,
sorry for my late answer...
The problem here is, that the RevealViewController handles the shouldAutorotateToInterfaceOrientation callback, not the current contentViewController
I changed the following and now it works as expected for me:
#pragma mark UIViewController
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)orientation
{
return [self.contentViewController shouldAutorotateToInterfaceOrientation:orientation];
}
- (BOOL)shouldAutorotate
{
UIDeviceOrientation orientation = [UIDevice currentDevice].orientation;
if (orientation == UIDeviceOrientationUnknown) return YES;
BOOL result = [self shouldAutorotateToInterfaceOrientation:orientation];
return result;
}
from ghsidebarnav.
Related Issues (20)
- How can this be used to present a modal view controller, or an action sheet? HOT 4
- NavigationController not added to stack for UIViewController that is 'pushed' HOT 1
- hidden keyboard when open menu HOT 6
- Strange Navigation Bar behavior with transitionFromViewController HOT 6
- Pan gesture to reveal sidebar not working
- Search result with variables HOT 10
- How to make view not clickable when open menu HOT 6
- Open/Close SidebarNav Swiping HOT 2
- SideBarNav wont disappear when clicking a search result HOT 1
- Reload View HOT 2
- Autoresizing Mask of Sidebar Controller HOT 1
- Problems with iOS 7 HOT 14
- UIStoryboardEmbedSegueTemplate HOT 6
- Pan gesture not working correctly in iOS7
- The UI is messed up in the Storyboard version
- Navigation button outside the sidebar HOT 5
- Search sometimes doesn't work
- Problems with iOS 7 HOT 2
- Refreshing GHSideBarNav HOT 1
- Reoad sidebarMenu
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ghsidebarnav.