I'm making an iOS application that has an interface in the portrait view.
However, when displaying web content I want the view to display in a landscape format, because I want the website test to display larger initially without the user needing to zoom.
Can I tell the program so present this view only in landscape?
Thank you.
looks like you want to force the orientation to landscape mode only..
heres my solution in MyViewController.h
add this code on top of MyViewController's @interface
then in the implementation file (MyViewController.m) add this code inside viewWillAppear:
this will force the device orientation to landscape mode left (or right depending what you want)
if you want to go back to portrait mode after leaving the viewcontroller add this code inside viewWillDisappear:
finally implement shouldAutorotateToInterfaceOrientation: to force the view into landscape mode left or right (or both)
hope this helps :3