I have an iOS Cocos2D app designed to run in landscape mode. When simulating the app on an iPhone 5 device, I use the following code to get the screen dimensions:
CGSize screenSizeInPixels = [CCDirector sharedDirector].winSizeInPixels;
Execution of this code yields a screenSizeInPixels.width = 1136.0f and a screenSizeInPixels.height = 640.0f. But when I simulate/execute the same code in Xcode 6, I get just the opposite: a screenSizeInPixels.width = 640.0f and a screenSizeInPixels.height = 1136.0f.
Why are the pixel dimensions reversed?