05-20-2012 06:51 AM
Hi,
How do you set the device orientation in PlayBook?
if I try this is the only orientation that I can use (landscape left, all others break the program):
CCDirector::sharedDirector()->setDeviceOrientation(kCCDeviceOrientationLandscapeLeft);
Solved! Go to Solution.
05-20-2012 10:58 AM
You can set it in the bar descriptor if you only want to set one orientation for your application.
<autoOrients>true</autoOrients> <aspectRatio>landscape</aspectRatio>
Cheers,
Jon
05-20-2012 11:19 AM
It works like a charm! Thanks for that!
I'll add just some aditional information for future searchers:
<initialWindow>
<systemChrome>none</systemChrome>
<transparent>false</transparent>
<autoOrients>false</autoOrients>
<aspectRatio>portrait</aspectRatio>
</initialWindow>
05-22-2012 09:02 PM
What is "transparent" for?
05-23-2012 05:40 AM
it has nothing to do with the orientation. I writed that just to make clear in what section the orientation tags go.