You are not going to believe this one..... The file name needs to be:
Just rename the extension to lower case .png and your problem should be fixed.
Jump to content
width = 320,
height = 480,
scale = "zoomStretch"
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.
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:
local testRect = display.newRect( 0,0, display.contentWidth, display.contentHeight ) testRect:setFillColor( 255,0,0 ) testRect.x, testRect.y = display.contentCenterX, display.contentCenterY
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.
Community Forum Software by IP.Board