Skip to content
New issue

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

Hide left view on portrait orientation #5

Open
guilhermearaujo opened this issue Jan 8, 2014 · 2 comments
Open

Hide left view on portrait orientation #5

guilhermearaujo opened this issue Jan 8, 2014 · 2 comments

Comments

@guilhermearaujo
Copy link

Is it possible to hide the left view controller when the device is on portrait orientation, like UISplitViewControler?

@percysnoodle
Copy link
Owner

There isn't a built-in option to do that, but you could try subclassing it and setting the leftControllerWidth property in willRotateToInterfaceOrientation:duration: to zero or 320 depending on the orientation.

@guilhermearaujo
Copy link
Author

I'm going to try that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants