Building project with Xcode 6 (iOS 8 SDK) causes rotation rendering problem on iPad

We have a project that behaves as desired when building using Xcode 5.1.1 (iOS sdk 7.2), but when creating using Xcode 6.2 (iOS sdk 8.2) on an iPad, there is a rendering problem. On iPad, our app only supports left and right terrain. When you rotate from one to the other, during the rotation animation, the screen rotates upside down to the right, but when it does this, it gets into the wrong position. (The lower left corner of the screen ends with about 200 pixels at the top and an equal number of nested pixels on the left).

This can also happen on the iPhone, but on the iPhone we only support portraiture, so rotation is not a problem.

One additional information, if I create with Xcode 6, but work on an iPad with iOS 7, there is NO problem. This ONLY happens when I build with Xcode 6 and launch the iPad on iOS 7.

Has anyone else seen behavior and knew what could be causing?

I found another stack overflow question when someone has the EXACT same problem. Their screenshots show EXACT rendering visualization on rotation as the application I'm working on. Here is a link to this other question. (Disappointingly, no one seemed to answer this question, and none of the suggestions gave me a solution.)

Here is a link to other questions that show the same error as me: Is this an iOS 8 error (rotation orientation problem)?

0
source share
1 answer

I found the answer to my problem. One of our developers noticed an "unexpected zero in the main window" when trying to click on the far right of the screen. This led me to a new search, and I found this thread in stackoverflow, which actually contained the answer to our problem.

(here is a link to a question that helps me answer: unexpected nil window in _UIApplicationHandleEventFromQueueEvent )

The actual answer came from a frankish who suggested opening main.xib (or the main storyboard) and clicking on the window in it and making sure that the properties "Visible at startup" and "Full screen at startup" are checked (set to true.)

In our case, it was ONLY the β€œFull Screen on Startup” property that needed to be set, but installing it, fixing the rotation problem that we observed, and it fixed the problem when the screen was not tangible when starting up on the iPad in the landscape.

+1
source

Source: https://habr.com/ru/post/1205340/


All Articles