I am making a view based application. For one of the xib files, I want it to only appear in landscape mode. And When i click a button in the first page it should automatically rotate to landscape and navigate to the new screen which should be in Landscape orientation.
How do i do this ?
If you are using
UINavigationControllerthen you will not be able to navigate from portrait to landscape, you will need to present your new view controller modally, not to push itCheck this answer Force UIViewController to only show in landscape mode