Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

iOS Simulator Loading Upside-Down in XCode

I haven't done anything funky with my code, and am running the latest version of XCode, but for some reason when I run a build on the simulator, everything works perfectly except for the fact that it's upside down. Any idea why that could be the case?

Thanks in advance.

like image 300
Kanyi Maqubela Avatar asked Sep 07 '11 05:09

Kanyi Maqubela


People also ask

How do I rotate my simulator in Xcode?

Android Simulators can be rotated using the following hotkeys: Linux – Ctrl + F12. Mac – Fn + Left Ctrl + F12. Windows – Left Ctrl + F11 or Left Ctrl + FF12.

How can you access iOS simulator in Xcode?

To launch a Simulator without running an appChoose Xcode > Open Developer Tool > Simulator. Control-click the Xcode icon in the Dock, and from the shortcut menu, choose Open Developer Tool > Simulator.

What is Simctl?

Simctl is a tool to help manage and programmatically interface with the simulator. You can access simctl using the xcrun command-line tool. Now, you'll explore several of these subcommands. Run the following: xcrun simctl list. The list command shows the list of all the available devices and the runtimes.


1 Answers

I had (have) this problem also. At first I though I found it when I created a fresh app and compared the Info.plist and discovered my app had the Supported Device Orientations different from the fresh app.

Specifically, I had Portrait Top above Portrait Bottom. After I put the Portrait Bottom at the head of the list the problem disappeared.

Or so I thought. I reorganized the main folder and put all the PNG files into a Resources folder. Deleted the old references in the project and add in the new locations and now the problem is back.

Also, noted the problem is occuring on the actual iOS device. You can see in this launch pix the status bar and picture are both upside down. As soon as my mainView loads the view orients correctly and becomes upright in the Portrait Top orientation.

[Picture of the launch1

There has to be something about the project file that is causing this. Still searching.

Looking around I found [this2 which states the order is important and the top most is the inital view. So now I am really puzzled as the Portrait Bottom is at the head of the list.

like image 167
tgunr Avatar answered Oct 09 '22 05:10

tgunr