I have a problem that in cocos2d when I run my game it runs in portait mode even though the default orientation is landscape. http://gyazo.com/99bd018dc52c7f3311cb09eb5c7229d7
The resolution is also showing up as 320x480 even though i'm running the Retina iPhone Simulator. The resolution should be 640x960, if i'm correct? Retina display is enabled also.
Related
I have notice a strange behaviour executing a simple test for my app.
The app is running on a tablet device.
In portait mode, before rotation, i have the correct font size.
I rotate the device in landscape mode and the app is stretched correctly
I rotate again the app in portrait mode but the font size is
decreased.
Somebody know why this happen?
How can I avoid this behaviour.
I'm going crazy for 3 days without found a solution
EDIT
Testing the app with another device (8' display), the problem is still present.
The problem is present too testing the app with visual studio simulator !!
I don't think is a code problem because my app has 4 pages with 4 different
ListViews and the problem is present in all pages.
I notice that the font size change when the device is rotate for the first time from portait to landscape.
The destination FontSize in landscape mode could be accettable, but when in portrait mode i need (is a customer requirement) to go back with the original Font Size
i'm developing app for both IOS7 & IOS8, and using storyBoard with size classes enabled.
app works fine in all simulators from iPhone 4s IOS7 to iPhone 6+
but the viewController is smaller than the screen in iPhone 5 with iOS7
app supports different orientations, i tried and canceled orientations but didn't work. i rested the simulator content, didn't work. I tried to change the initial view controller, didn't work. I cleaned the project, didn't work
To run your application in fullscreen in iPhone5 you must provide Launch Image for iPhone5 with resolution 640x1136.
If you are not including Launch Image of the size iPhone5 require then app will run in the centre of the screen, showing black area at top and bottom.
You can also refer here for more information.
Make sure there is a Default-568#2x.png in the supporting files
I am getting a strange error when launching my app in iPad running on iOS 8 (only if launched in landscape mode). Though, it works very fine in iOS 7
Here is the screenshot: http://imgur.com/OZRLjZ7
The app is fully portrait mode except one screen (graph which requires both portrait & landscape modes) and so I can't uncheck landscape property in deployment target. If I uncheck landscape orientation support in deployment target then it works very fine. So it works fine when I launch in iPad with iOS 8 (ONLY if it is portrait mode). If I launch it in landscape mode it shows this black strip (which is exactly the area which keyboard takes but there no keyboard, neither I'm showing it on this screen).
Thanks for your help in advance!
I've noticed something strange running an app on a retina iPad under iOS7.
Bringing up the standard keyboard (via the user tapping in a UITextfield) sees a memory spike of 14MB in the Activity Monitor in Instruments, whereas on a non-retina iPad this is around 4MB.
Is this to be expected /normal or should I be checking my code ?
Is there any way to differentiate between landscape and portrait when the device is sitting on a desk, i.e. UIDeviceOrientationFaceUp? I have two different xib files that I switch between based on the way the user is holding the device. But the problem arrises when I hold the device in landscape, and then place the device down. The device remains in landscape, but will load the portrait xib file. The problem would be opposite if in my coding I coupled the UIDeviceOrientationFaceUp with the landscape orientations: then I would have my landscape view showing when the device is still in portrait.
Is there any way to be able to figure out if the device is still showing landscape or portrait? I have tried checking frame width, but it claims it is 768 even if the device is sitting flat in landscape. And I can't force an orientation when the device goes flat, I hear thats the road to rejection on the App Store.
You can't do that. The accelerometer can't tell on which side of the phone the user is sitting when it's laid down on a table. You can measure rotation around it's axis using the gyroscope (and the compass), but that still doesn't tell you where the user is unfortunately.
There is one way to check it.
UIDeviceOrientation deviceOrientation = [[UIDevice currentDevice] orientation];
UIInterfaceOrientation statusBarOrientation =[UIApplication sharedApplication].statusBarOrientation;
Use the first one to check if the device is in faceup and second one will tell you if the device is in portrait or landscape.