FastttCamera icon indicating copy to clipboard operation
FastttCamera copied to clipboard

Can't Lock Orientation

Open jonstoked opened this issue 9 years ago • 4 comments

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

jonstoked avatar Mar 26 '15 22:03 jonstoked

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

lauraskelton avatar Mar 27 '15 17:03 lauraskelton

Muchas gracias. Lemme know if you need more info.

jonstoked avatar Mar 27 '15 17:03 jonstoked

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.

lauraskelton avatar Apr 08 '15 04:04 lauraskelton

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

corysullivan avatar Jan 02 '16 13:01 corysullivan