Has anyone gotten a corona app to display full screen via Xcode’s iphone 5 simulator? things work in corona’s simulator but not in xcode’s simulator.
[import]uid: 58777 topic_id: 31977 reply_id: 331977[/import]
what you want to do is for iphone 5 display is
[code] local isTallPhone = display.pixelHeight == 1136
local isiPad = display.pixelHeight == 1024
local isiPad3 = display.pixelHeight == 2048
local isiPhone4 = display.pixelHeight == 960
local isiPhone = display.pixelHeight == 480
local function imagedisplay ()
if isTallPhone then —iPhone 5
–(Put code and images here supporing iPhone 5)–
elseif isiPhone or isiPhone4 then
–(Put code and images here supporing iPhone lower than 5)–
elseif isiPad or isiPad3 then
–(Put code and images here supporing iPad’s)–
end
end
imagedisplay()
[/code]
You want to do that if your supporting iphone 5 [import]uid: 17058 topic_id: 31977 reply_id: 127484[/import]
sebitttas thanks…great code.
only thing is on the xcode sim…no matter what image i use i still get black boarders on top and bottom. does your app work full screen via the xcode iphone 5 sim? [import]uid: 58777 topic_id: 31977 reply_id: 127486[/import]
yes it does work full screen via the xcode sim. What I actually do to display my image in portrait is this
[code] local image = display.newImageRect(“image.png”, 320, 570)
–That would be full screen in portrait mode–
local image = display.newImageRect(“image.png”, 570, 320)
–That would be full screen in landscape mode–
[/code]
Image must be define 570 for either landscape or portrait mode [import]uid: 17058 topic_id: 31977 reply_id: 127491[/import]
what you want to do is for iphone 5 display is
[code] local isTallPhone = display.pixelHeight == 1136
local isiPad = display.pixelHeight == 1024
local isiPad3 = display.pixelHeight == 2048
local isiPhone4 = display.pixelHeight == 960
local isiPhone = display.pixelHeight == 480
local function imagedisplay ()
if isTallPhone then —iPhone 5
–(Put code and images here supporing iPhone 5)–
elseif isiPhone or isiPhone4 then
–(Put code and images here supporing iPhone lower than 5)–
elseif isiPad or isiPad3 then
–(Put code and images here supporing iPad’s)–
end
end
imagedisplay()
[/code]
You want to do that if your supporting iphone 5 [import]uid: 17058 topic_id: 31977 reply_id: 127484[/import]
sebitttas thanks…great code.
only thing is on the xcode sim…no matter what image i use i still get black boarders on top and bottom. does your app work full screen via the xcode iphone 5 sim? [import]uid: 58777 topic_id: 31977 reply_id: 127486[/import]
yes it does work full screen via the xcode sim. What I actually do to display my image in portrait is this
[code] local image = display.newImageRect(“image.png”, 320, 570)
–That would be full screen in portrait mode–
local image = display.newImageRect(“image.png”, 570, 320)
–That would be full screen in landscape mode–
[/code]
Image must be define 570 for either landscape or portrait mode [import]uid: 17058 topic_id: 31977 reply_id: 127491[/import]