I have MainWindow.xib in the application.
In the Interface Builder, I rotate the main window from portrait to landscape and than put few UIControls on it.
Than I save it.
After that when I run the application although during design time I made everything in landscape mode, it always displays things in portrait mode.
Please help me
IB just sets up your XIB files. It’s your view controller that manages the orientation.
The default UIViewController or UINavigation controller has details on this.
Specifically, you need to overload
Have a look at the documentation for UIViewController for more info.