The app is not the same as in the simulator

Hi, lately I’ve been testing my game on my iPhone 5, the only problem I’m facing is that; in the corona simulator the game fits well to the screen ( I’m viewing as iPhone 5 ), but when launching the game on my iPhone 5, there are black bars on the bottom of the screen, and the top, I can’t seem to solve it because the simulator doesn’t show that, I tried many config settings, but seems like I can’t get it working well :\
here’s my config.lua file:
 

-- For iPads if system.getInfo("model") == "iPad" or system.getInfo("model") == "iPad Simulator" then application = { content = { width = 360, height = 480, scale = "zoomEven", audioPlayFrequency="44100", fps = 60, imageSuffix = { ["@2x"] = 2, ["@4x"] = 4, } } } -- For "tall" sizes (iPhone 5 and new iTouch) elseif display.pixelHeight \> 960 then application = { content = { width = 320, height = 568, scale = "zoomEven", audioPlayFrequency="44100", fps = 60, imageSuffix = { ["@2x"] = 1.5, } } } else -- For traditional sizes (iPhone 4S & below, old iTouch) application = { content = { width = 320, height = 480, scale = "zoomEven", audioPlayFrequency="44100", fps = 60, imageSuffix = { ["@2x"] = 2, } } } end

Take a look at the Q&A # 3. How can I make my app use the full iPhone 5 screen?

 http://coronalabs.com/blog/2012/09/19/faq-wednesday-iphone-5-and-ios-6/

I think that post is outdated? Although I’m not talking about fitting just an image, there are many elements in the game …

Do you have Default-568h@2x.png file (640x1136) in your project folder?  If you do and yet you are seeing the black bars, I have no clue why.

Naomi

Putting that file there does the job without doing anything in the code? I mean do I have to make a splash screen that shows it? or I just place it in my project file without modifying the code?

Never mind, I got the game working on full screen, many thanks Naomi!(:

Glad to hear it helped.

Cheers,

Naomi

Take a look at the Q&A # 3. How can I make my app use the full iPhone 5 screen?

 http://coronalabs.com/blog/2012/09/19/faq-wednesday-iphone-5-and-ios-6/

I think that post is outdated? Although I’m not talking about fitting just an image, there are many elements in the game …

Do you have Default-568h@2x.png file (640x1136) in your project folder?  If you do and yet you are seeing the black bars, I have no clue why.

Naomi

Putting that file there does the job without doing anything in the code? I mean do I have to make a splash screen that shows it? or I just place it in my project file without modifying the code?

Never mind, I got the game working on full screen, many thanks Naomi!(:

Glad to hear it helped.

Cheers,

Naomi