Hi Arash,
What does your “build.settings” file look like? Please just share the basic parts: the “settings” and “orientation” tables… I don’t need to see any other info like permissions or custom font setup.
Brent
Hi Arash,
What does your “build.settings” file look like? Please just share the basic parts: the “settings” and “orientation” tables… I don’t need to see any other info like permissions or custom font setup.
Brent
Hi Brent,
THANKS,
build.settings
settings = {
orientation =
{
default = “landscapeRight”,
},
iphone =
{
plist=
{
UIStatusBarHidden=true,
CFBundleIconFile = “Icon.png”,
CFBundleIconFiles = {
“Icon.png”,
“Icon@2x.png”,
“Icon-72.png”,
},
},
},
Hi Arash,
Can you try setting something other than “zoomStretch” as your scale factor, and then try to fill the entire content area with a color? Just do this for a test:
[lua]
local testRect = display.newRect( 0,0, display.contentWidth, display.contentHeight )
testRect:setFillColor( 255,0,0 )
testRect.x, testRect.y = display.contentCenterX, display.contentCenterY
[/lua]
I’d like to see the result of this, and ask again, is there a specific reason why you chose “zoomStretch”? This is not a scale factor that I recommend in almost any case, so I’m curious why you’re using it.
Thanks,
Brent
Hi Niles,
Any luck to fix the problem? I have exactly the same problem. Was there anything wrong with your Default-568h@2x.png? Could you please update us?
Cheers,
Arash
Hi Arash. Niles had an upper case .PNG as part of his file name. The filename has to be an exact case match. It also has to be 640px wide and 1136px high.
I chekced Default-568h@2x.png, the filename is right and it has the right dimensions. I’m not sure if my config file is right. Could you please have look? I also attached my Default-568h@2x.png.
Cheers,
Config.lua
application =
{
content =
{
width = 320,
height = 480,
scale = “zoomStretch”
},
}
Hi Arash,
I assume this file is in the root project directory, not in a subfolder? And the “dash” in the file name is an actual dash (hyphen), not some kind of HTML m-dash or n-dash (extended dash)?
Visually, on the actual iPhone5, what does it look like? Are you getting the empty bars on both top and bottom, or something else?
As a side note, unless this solely a text-based app, I don’t recommend using “zoomStretch”, as that will likely warp your images. “letterbox” or “zoomEven” are much better choices in general.
Brent
Hi Brent,
The dash is an actuall dash and the file is in the root project directory as the main.lua file is.
There are empty bars on the left and right of the screen, as my game runs in landscape.
Cheers,
Arash
Hi Arash,
What does your “build.settings” file look like? Please just share the basic parts: the “settings” and “orientation” tables… I don’t need to see any other info like permissions or custom font setup.
Brent
Hi Brent,
THANKS,
build.settings
settings = {
orientation =
{
default = “landscapeRight”,
},
iphone =
{
plist=
{
UIStatusBarHidden=true,
CFBundleIconFile = “Icon.png”,
CFBundleIconFiles = {
“Icon.png”,
“Icon@2x.png”,
“Icon-72.png”,
},
},
},
Hi Arash,
Can you try setting something other than “zoomStretch” as your scale factor, and then try to fill the entire content area with a color? Just do this for a test:
[lua]
local testRect = display.newRect( 0,0, display.contentWidth, display.contentHeight )
testRect:setFillColor( 255,0,0 )
testRect.x, testRect.y = display.contentCenterX, display.contentCenterY
[/lua]
I’d like to see the result of this, and ask again, is there a specific reason why you chose “zoomStretch”? This is not a scale factor that I recommend in almost any case, so I’m curious why you’re using it.
Thanks,
Brent