I have tried all the options in stack over flow, some answers are not effective and some are not explained properly.I have a table view and once did select row called, i am pushing it to the new view controller. Now at this juncture i want that new view controller on landscape.All my views are portrait, i want this single new view controller to be in Landscape. Thanks in advance.
Asked
Active
Viewed 75 times
-1
-
1possible duplicate of [Change UIInterfaceOrientation for only one UIViewController in app iOS (SOLVED!)](http://stackoverflow.com/questions/13357156/change-uiinterfaceorientation-for-only-one-uiviewcontroller-in-app-ios-solved) – Lord Zsolt May 30 '14 at 13:44
-
And also: http://mattgemmell.com/what-have-you-tried/ – Lord Zsolt May 30 '14 at 13:44
1 Answers
0
Add the following method in your Landscape View controller
-(NSUInterger)supportedInterfaceOrientation
{
return UIInterfaceOrientationLandscape;
}
Also din't forget to set your Orientation property under Attribute Inspector in Storyboards.

Pancho
- 4,099
- 1
- 21
- 32