Sagar - I had the same problem, but I was able to solve it.
Like yours, my application was launched as an application for the iPhone, which I “upgraded” to a universal application using the Xcode wizard. I noticed that when starting on the iPad itself, starting from the landscape, the application will launch in “Portrait”, and then, possibly, turn it into “Landscape”. On the simulator, starting with the landscape, the application will start in the Landscape, then the simulator will be placed in the "Portrait".
On iPad, my app is an advanced viewing app with TabBarControllers left and right. Each tab is a view controller that returns YES in order to activate the I / O attribute.
I noticed that the brand new wizard-created simple case with the splitviewcontroller Universal did not have this problem.
The difference I found between my application and the simple case was that I did not add the splitview-controller view to the application window in applicationDidFinishLaunchingWithOptions. Instead, at this point, I showed the download view, and then when the initialization thread has finished, I add the splitviewcontroller view (and hide the load view).
When I added the splitviewcontroller view to the application window while calling applicationDidFinishLaunchingWithOptions, everything started to work fine.
There must be some magic that happens when returning from applicationDidFinishLaunchingWithOptions ???
Is your application similar to mine because it does not add the view of the main view controller to the window during applicationDidFinishLaunchingWithOptions?
Tomswift
source share