Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

App Looks Great In Corona Iphone 5 Simulator, Looks Un-Optimized In Xcode And Actual Iphone 5.
Started by nilesmitchell Apr 07 2013 05:28 PM

- - - - -
35 replies to this topic
[TOPIC CONTROLS]
Page 2 of 2 1 2
This topic has been archived. This means that you cannot reply to this topic.
[/TOPIC CONTROLS]
[modOptionsDropdown]
[/modOptionsDropdown]
[reputationFilter]
[TOPIC: post.html]
#26

Rob Miracle

[GLOBAL: userInfoPane.html]
Rob Miracle
  • Moderator

  • 26,622 posts
  • Enterprise

You are not going to believe this one.....  The file name needs to be:

 

Default-568h@2x.png

 

not:

 

Default-568h@2x.PNG

 

Just rename the extension to lower case .png and your problem should be fixed.



[TOPIC: post.html]
#27

nilesmitchell

[GLOBAL: userInfoPane.html]
nilesmitchell
  • Enthusiast

  • 56 posts
  • Corona SDK

That was it!

 

So weird!



[TOPIC: post.html]
#28

Rob Miracle

[GLOBAL: userInfoPane.html]
Rob Miracle
  • Moderator

  • 26,622 posts
  • Enterprise

Filenames on devices are case sensitive, not so on the Mac



[TOPIC: post.html]
#29

arash.jalalian

[GLOBAL: userInfoPane.html]
arash.jalalian
  • Observer

  • 24 posts
  • Corona SDK

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



[TOPIC: post.html]
#30

Rob Miracle

[GLOBAL: userInfoPane.html]
Rob Miracle
  • Moderator

  • 26,622 posts
  • Enterprise

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. 



[TOPIC: post.html]
#31

arash.jalalian

[GLOBAL: userInfoPane.html]
arash.jalalian
  • Observer

  • 24 posts
  • Corona SDK

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. Default-568h@2x.png

 

Cheers,

 

Config.lua

 

application =
{
content =
{
width = 320,
height = 480,
scale = "zoomStretch"
},
}
 



[TOPIC: post.html]
#32

bjsorrentino

[GLOBAL: userInfoPane.html]
bjsorrentino
  • Veteran

  • 8,506 posts
  • Corona SDK

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



[TOPIC: post.html]
#33

arash.jalalian

[GLOBAL: userInfoPane.html]
arash.jalalian
  • Observer

  • 24 posts
  • Corona SDK

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



[TOPIC: post.html]
#34

bjsorrentino

[GLOBAL: userInfoPane.html]
bjsorrentino
  • Veteran

  • 8,506 posts
  • Corona SDK

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



[TOPIC: post.html]
#35

arash.jalalian

[GLOBAL: userInfoPane.html]
arash.jalalian
  • Observer

  • 24 posts
  • Corona SDK

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



[TOPIC: post.html]
#36

bjsorrentino

[GLOBAL: userInfoPane.html]
bjsorrentino
  • Veteran

  • 8,506 posts
  • Corona SDK

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:

 

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.

 

Thanks,

Brent




[topic_controls]
Page 2 of 2 1 2
 
[/topic_controls]