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 trialThomas L
2,366 PointsRibbit: How would you enable auto rotation in only the ImageViewController of the app?
In the app, if a picture is taken in landscape mode, I want to be able to view it in the image view controller in the same orientation. However, I want to keep the orientations all other screens locked.
This seems to be a common problem on stack overflow. I have tried numerous solutions, including creating categories, adding code to the app delegate, and adding observers... None seem to work. Has anybody solved this problem?
1 Answer
Sam Soffes
Treehouse Guest TeacherLook at supportedInterfaceOrientations in UIViewController.