screen size in iphone 5

Black screen in top and bottum when I am using below code in config file for my application

if ( string.sub( system.getInfo(“model”), 1, 2 ) == “iP” and display.pixelHeight > 960 ) then

   application =

   {

      content =

      {

         width = 320,

         height = 568,

         scale = “letterBox”,

         xAlign = “center”,

         yAlign = “center”,

         device=“iphone5”,

         imageSuffix =

         {

            ["@2x-568h"] = 1.5,

         },

      },

   }

   

   elseif ( string.sub( system.getInfo(“model”), 1, 2 ) == “iP” ) then

   application =

   {

      content =

      {

         width = 320,

         height = 480,

         scale = “letterBox”,

         xAlign = “center”,

         yAlign = “center”,

         imageSuffix =

         {

            ["@2x"] = 2.0,

         },

      },

   }

   end

version in iphone 5 is ios 7.1 …, It is not returning proper display.pixelHeight, when I am running same in corona simulator it is working fine but when i install the same in my iphone 5 it is not working proper(having black screen in top and bottum).

can any body give proper solution for the same.

Thanks in advance

Your project MUST have a splash screen file called “Default-568h@2x.png”, with a size of 640 * 1136 otherwise it will not display full screen.

Have you already done this?

Thanks alot @AlanPlantPot for yours suggestion really worked.

:smiley:

Thanks a lot. It really worked. :smiley:

Your project MUST have a splash screen file called “Default-568h@2x.png”, with a size of 640 * 1136 otherwise it will not display full screen.

Have you already done this?

Thanks alot @AlanPlantPot for yours suggestion really worked.

:smiley:

Thanks a lot. It really worked. :smiley:

Thanks @AllanPlantPot! Was driving me insane.

Thanks @AllanPlantPot! Was driving me insane.