Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

iOS

Programmatically taking picture that is wider than iPhone display

Hi,

I am trying to programmatically take a wide-angle/horizontal picture (as if the phone was being held horizontally) with an iPhone that is in the vertical position.

It doesn't necessarily have to be the same aspect ratio as an iPhone in the Horiztonal position, it just has to be as wide or wider than that.

There is no UI while the picture is being taken so there is no need to present what the picture will look like on the screen while it is being taken.

Has anyone done this before or have any ideas about how it can be done?

This probably has to us AVFoundation but I am not sure.

Thanks, Dan