Hi corona friends ,
i am trying to make my app view to start below the statusbar of the device but i noticed there is a small gap between the app and status bar when i run in the device but in simulator it works fine…
here is my config.lua file
[lua]
local aspectRatio = display.pixelHeight / display.pixelWidth
application = {
content = {
width = aspectRatio > 1.5 and 320 or math.ceil( 480 / aspectRatio ),
height = aspectRatio < 1.5 and 480 or math.ceil( 320 * aspectRatio ),
scale = “letterBox”,
fps = 30,
imageSuffix = {
["@2x"] = 1.5,
["@4x"] = 3.0,
},
},
}
[/lua]
the file to view the top bar in my app is the following
[lua]
display.setDefault( “anchorX”, 0 )
display.setDefault( “anchorY”, 0)
local title = display.newImage( “images/top.png”,0, 0)
title.y =display.statusBarHeight
[/lua]
any clue why the top image comes little below statusbar.
http://postimg.org/image/t41i6uknz/
thx
Abdul