I have this as the FIRST line of my main.lua:
display.setStatusBar(display.HiddenStatusBar)
So could someone please explain why this happens:
When I click the app icon the status bar disappears and the default.png is displayed in that zoom in style.
THEN the status bar is shown, then the initial ‘splash’ screen is shown (full screen with the status bar).
I thought that having the display.setStatusBar(display.HiddenStatusBar) as the first line of the main.lua would prevent the status bar from being displayed once the app starts!?!
Please help if you can…ta
This is my config.lua
if string.sub(system.getInfo(“model”),1,4) == “iPad” then
application =
{
content =
{
fps = 60,
width = 360,
height = 480,
scale = “letterBox”,
xAlign = “center”,
yAlign = “center”,
imageSuffix =
{
["@2x"] = 1.5,
["@4x"] = 3.0,
},
},
notification =
{
iphone = {
types = {
“badge”, “sound”, “alert”
}
}
}
}
elseif string.sub(system.getInfo(“model”),1,2) == “iP” and display.pixelHeight > 960 then
application =
{
content =
{
fps = 60,
width = 320,
height = 568,
scale = “letterBox”,
xAlign = “center”,
yAlign = “center”,
imageSuffix =
{
["@2x"] = 1.5,
["@4x"] = 3.0,
},
},
notification =
{
iphone = {
types = {
“badge”, “sound”, “alert”
}
}
}
}
elseif string.sub(system.getInfo(“model”),1,2) == “iP” then
application =
{
content =
{
fps = 60,
width = 320,
height = 480,
scale = “letterBox”,
xAlign = “center”,
yAlign = “center”,
imageSuffix =
{
["@2x"] = 1.5,
["@4x"] = 3.0,
},
},
notification =
{
iphone = {
types = {
“badge”, “sound”, “alert”
}
}
}
}
elseif display.pixelHeight / display.pixelWidth > 1.72 then
application =
{
content =
{
fps = 60,
width = 320,
height = 570,
scale = “letterBox”,
xAlign = “center”,
yAlign = “center”,
imageSuffix =
{
["@2x"] = 1.5,
["@4x"] = 3.0,
},
},
}
else
application =
{
content =
{
fps = 60,
width = 320,
height = 512,
scale = “letterBox”,
xAlign = “center”,
yAlign = “center”,
imageSuffix =
{
["@2x"] = 1.5,
["@4x"] = 3.0,
},
},
notification =
{
iphone = {
types = {
“badge”, “sound”, “alert”
}
}
}
}
end
This is my build.settings
settings =
{
iphone =
{
plist=
{
UIStatusBarHidden = true,
UIApplicationExitsOnSuspend = true, UIPrerenderedIcon = true,
CFBundleIconFile = “Icon.png”,
CFBundleIconFiles = {
“Icon.png” ,
“Icon@2x.png” ,
“Icon-72.png” ,
“Icon-Small-50.png” ,
“Icon-Small.png” ,
“Icon-Small@2x.png”
},
},
},
orientation =
{
default = “portrait”,
supported =
{
“portrait”,
},
},
content =
{
fps = 60
},
}