iPhone 5 support won't work

Hi, in my project folder I added the following config.lua file:

local targetDevice = ( system.getInfo( "model" ) )   
local isTall = ( "iPhone" == system.getInfo( "model" ) ) and ( display.pixelHeight \> 960 )  
  
if isTall == false and targetDevice == "iPhone" then  
application =   
{  
 content =   
 {  
 width = 320,  
 height = 480,  
 scale = "letterbox",  
 fps = 60,  
 antialias = true,  
 xalign = "center",  
 yalign = "center",  
 imageSuffix =   
 {  
 ["@2x"] = 2,  
 },  
 },  
}  
  
elseif isTall == true then  
application =   
{  
 content =   
 {  
 width = 320,  
 height = 568,  
 fps = 60,  
 antialias = true,  
 xalign = "center",  
 yalign = "center",  
 },  
}  
  
elseif targetDevice == "iPad" then  
application =   
{  
 content =   
 {  
 width = 768,  
 height = 1024,  
 scale = "letterbox",  
 fps = 60,  
 antialias = true,  
 xalign = "center",  
 yalign = "center",  
 imageSuffix =   
 {  
 ["@2x"] = 2,  
 },  
 },  
}  
end  

Then, I added “Default-568h@2x.png” image as the splashscreen, but my app won’t work in “tall” mode.

How can I fix this problem?

Thanks :smiley: [import]uid: 122056 topic_id: 35766 reply_id: 335766[/import]

Regardless of the config.lua your app should switch to tall mode as long as you have the
“Default-568h@2x.png” in your app’s root directory.

From what I’ve seen the most common reason for the device not switching to tall mode is that the actual filename and/or the string in the code specifying the file is incorrect.
Make sure you’re capitalization is correct and that the dash is a normal “-” and not some other character that looks like it. [import]uid: 70847 topic_id: 35766 reply_id: 142270[/import]

Thanks for your reply, I checked out my main.lua file and both the code and the file name are correct but it still won’t work :frowning: [import]uid: 122056 topic_id: 35766 reply_id: 142271[/import]

You said that you checked your main.lua.
There’s no need to load it in Corona. It just needs to be in the root directory of the app. iOS will take care of the rest. [import]uid: 70847 topic_id: 35766 reply_id: 142274[/import]

Try downloading this very simple project.
http://www.swipeware.com/apps/dl/ios5tall.zip

It will activate tall mode and display the splash screen.

One thing to remember is that you have to do your testing on an actual device (or Xcode simulator), not the Corona Simulator. [import]uid: 70847 topic_id: 35766 reply_id: 142276[/import]

Regardless of the config.lua your app should switch to tall mode as long as you have the
“Default-568h@2x.png” in your app’s root directory.

From what I’ve seen the most common reason for the device not switching to tall mode is that the actual filename and/or the string in the code specifying the file is incorrect.
Make sure you’re capitalization is correct and that the dash is a normal “-” and not some other character that looks like it. [import]uid: 70847 topic_id: 35766 reply_id: 142270[/import]

Thanks for your reply, I checked out my main.lua file and both the code and the file name are correct but it still won’t work :frowning: [import]uid: 122056 topic_id: 35766 reply_id: 142271[/import]

You said that you checked your main.lua.
There’s no need to load it in Corona. It just needs to be in the root directory of the app. iOS will take care of the rest. [import]uid: 70847 topic_id: 35766 reply_id: 142274[/import]

Try downloading this very simple project.
http://www.swipeware.com/apps/dl/ios5tall.zip

It will activate tall mode and display the splash screen.

One thing to remember is that you have to do your testing on an actual device (or Xcode simulator), not the Corona Simulator. [import]uid: 70847 topic_id: 35766 reply_id: 142276[/import]