Problem with Default Orientation

I am trying to set the default orientation to landscape by using a config.lua file. I am also trying to hide the status bar. Neither are working in the simulator. However, my app is diplaying the correct graphics.

I am using build 2011.656.

Here is the contents of the file:

application =
{
settings =
{
orientation =
{
default = "landscapeRight",
supported =
{
"landscapeLeft", "landscapeRight",
},
},

iphone =
{
plist =
{
UIStatusBarHidden = true,

},
},

},
content =
{
width = 320,
height = 480,
scale = "letterbox",

imageSuffix =
{
["@2"] = 2,
},
},

}

Put this in build.settings;

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
settings =
{
        orientation =
        {
                default = "landscapeRight",
                                supported =
                                        {
                                                         "landscapeRight", "landscapeLeft"
                                        },
        },
 
        iphone =
        {
                plist =
                {
                                                UIStatusBarHidden=true
                },
        }     
}

The landscape now works but the status bar won't hide. I can hide it in code but I like the idea of keeping it in the build.settings file. Is this a known issue with the simulator?

I believe that yes, this is a simulator issue - if you do a test build for the Xcode iPhone simulator it should work fine. (Let me know if it causes any other issues.)

Glad I was able to assist with Landscape.

Peach

views:1639 update:2011/11/25 8:45:21
corona forums © 2003-2011