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

Can't Lock Orientation #12

Open
jonstoked opened this issue Mar 26, 2015 · 4 comments
Open

Can't Lock Orientation #12

jonstoked opened this issue Mar 26, 2015 · 4 comments

Comments

@jonstoked
Copy link

I love this library, thanks for all the hard work!

I'm having a problem though. I'm unable to lock the camera in Lansdcape. My entire project supports LandscapeLeft/Right only. On my fastttCamera instance, I've set interfaceRotatesWithOrientation = NO.

If I start the camera holding the device in Landscape mode, everything works great. But if I hold the device in portrait mode, and start the camera, the viewport is rotated 90 degrees. I can now rotate the phone in any direction, and the viewport will stay offset 90 degrees.

Here's a dandy image taken, after starting in Landscape mode & staying in landscape mode.

photo 1

Here's a not so dandy one, taken after starting holding the phone in portrait, and then rotating back to landscape.

photo 2

Note that these are screenshots, not images saved using the delegate callbacks.

Here's a gist of my CameraViewController.m >> https://gist.github.com/jonstoked/43cb9674183f984c1006.

Any ideas?

Thanks,
Jon

@lauraskelton
Copy link
Contributor

Thanks for letting me know, Jon! I'll take a look this weekend and work on a fix.

@jonstoked
Copy link
Author

Muchas gracias. Lemme know if you need more info.

@lauraskelton
Copy link
Contributor

Just an update that I'm taking a look at this! I designed the orientation lock to apply mainly to portrait mode (which is how we use it at IFTTT)- it's taking a bit of a larger update to handle landscape-only rotation properly.

@corysullivan
Copy link

Hi @lauraskelton, thanks for the great library. Any updates on this issue? I have the identical scenario/problem as @jonstoked described.

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

3 participants