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,
},
},

} [import]uid: 41809 topic_id: 18103 reply_id: 318103[/import]

Put this in build.settings;
[lua]settings =
{
orientation =
{
default = “landscapeRight”,
supported =
{
“landscapeRight”, “landscapeLeft”
},
},

iphone =
{
plist =
{
UIStatusBarHidden=true
},
}
}[/lua]

And this in config.lua;

[lua]application =
{
content =
{
width = 320,
height = 480,
scale = “letterbox”,

imageSuffix =
{
["@2x"] = 2
}
},
}[/lua]

Let me know how that goes!

Peach :slight_smile: [import]uid: 52491 topic_id: 18103 reply_id: 69283[/import]

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? [import]uid: 41809 topic_id: 18103 reply_id: 69307[/import]

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 [import]uid: 52491 topic_id: 18103 reply_id: 69327[/import]

Hi Peach,

The status bar is gone when I compile it for the iPhone so it appears to be a simulator issue.

BTW, I could not compile the app with build 656. I got the dreaded application freeze when connecting to the server. I was able to compile though with build 591 (I keep both on my Mac in separate directories).

Thanks for all your help. [import]uid: 41809 topic_id: 18103 reply_id: 69511[/import]

Sometimes daily builds are horribly broken :wink:

Always a good idea to keep the latest stable around - but if you want to use a daily build I’ve been using .689 lately and haven’t run into any issues yet.

Peach :slight_smile: [import]uid: 52491 topic_id: 18103 reply_id: 69530[/import]