Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

Black screen on launch with iOS 8 (Landscape apps)
Started by ingemar Sep 26 2014 09:15 PM

39 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

ingemar

[GLOBAL: userInfoPane.html]
ingemar
  • Corona Geek

  • 2,733 posts
  • Enterprise

@rune7

 

iOS 8 update done... Launch image is just fine on an iPad 3 running iOS 8 with my settings as above.

 

1. Make sure you only have the exact same 8 settings in your UILaunchImages table as I have. I suspect having more (or other values) might confuse the device.

 

2. Make sure you delete the old app from your iPad before installing the new app. Sometimes old data might stay behind and mess things up.



[TOPIC: post.html]
#27

rune7

[GLOBAL: userInfoPane.html]
rune7
  • Contributor

  • 373 posts
  • Corona SDK

Thanks for checking on your end.

I do have a bit different list, but that's mainly additional entries for left and right orientation.

Anyway, I'll test your exact list next and see if it works.



[TOPIC: post.html]
#28

Rob Miracle

[GLOBAL: userInfoPane.html]
Rob Miracle
  • Moderator

  • 26,693 posts
  • Enterprise

Before the iPhone 6 plus, iPhones only have portrait launch images.  If your app was a landscape only app, you would make your portrait launch image so that it looked right (i.e. any text, images were rotated).   You only needed landscape for the iPads. 

 

But the iPhone 6 Plus has tablet behaviors so it supports landscape launch images.  I agree with Ingemar that needing to specify landscape images seems like something should not have to do.   But since we have to, to get around this, just specify them and use your existing portrait image.  If you want to use separate landscape images do so, though they may need to be portrait with rotated art.

 

Rob



[TOPIC: post.html]
#29

rune7

[GLOBAL: userInfoPane.html]
rune7
  • Contributor

  • 373 posts
  • Corona SDK

ingemar, 

 

Just checked your version on my iPad and it works for all starting orientations I tried. I'll use this one in the hope that the phone versions are working as well. Thanks for your input.



[TOPIC: post.html]
#30

ingemar

[GLOBAL: userInfoPane.html]
ingemar
  • Corona Geek

  • 2,733 posts
  • Enterprise

Sounds great!

 

Xcode 6 and iOS 8 have sure been head-scratchers in many ways with things not behaving as expected...



[TOPIC: post.html]
#31

hydralisk_mk2

[GLOBAL: userInfoPane.html]
hydralisk_mk2
  • Enthusiast

  • 64 posts
  • Corona SDK

If I don’t use launch images, I just want to enable iPhone5 tall screen, how do I do exactly?

(Do iPhone6 and iPhone6 Plus need that to enable tall mode?)
And I didn’t provide new icons when I uploaded for review, will iPhone6 Plus be compatible?



[TOPIC: post.html]
#32

ingemar

[GLOBAL: userInfoPane.html]
ingemar
  • Corona Geek

  • 2,733 posts
  • Enterprise

@hydralisk_mk2

 

For iPhone 5 "tall-mode" you need a launch image called Default-568h@2x.png with the dimensions of 640x1136px.

 

This will not make your app iPhone 6 / 6 Plus compatible. Without providing the new launch screens / app icons your app will not be regarded as "Optimized for iPhone 6 / 6 Plus"

Both phones will use the iPhone 5 launch image and scale up the app content which will make your app look "fuzzy".

 

If you want specific iPhone 6 / 6 Plus support, you can read this thread from the top as it contains preliminary suggestions on how to achieve it. CoronaLabs will come out with guidelines later on after they figure out the best approach for Corona SDK, but at the moment the suggestions above should get you started.



[TOPIC: post.html]
#33

hydralisk_mk2

[GLOBAL: userInfoPane.html]
hydralisk_mk2
  • Enthusiast

  • 64 posts
  • Corona SDK

Thanks for reply.

 

I know that I did have Default-568h@2x.png with the build.setting WITHOUT UILaunchImages table. (Corona build 2393a)

If I keep the old setting, does it means iOS8 and new phones will not be compatible.

But my app is still available for other users?



[TOPIC: post.html]
#34

ingemar

[GLOBAL: userInfoPane.html]
ingemar
  • Corona Geek

  • 2,733 posts
  • Enterprise

Your app will still run on the iPhone 6 / 6 Plus, but it will run in "zoomed" mode.



[TOPIC: post.html]
#35

toga

[GLOBAL: userInfoPane.html]
toga
  • Contributor

  • 103 posts
  • Corona SDK

 Thanks a lot Ingemar for your "research".

Just one question. for a landscape only app do i really need the  ["UILaunchImageOrientation"] = "Portrait" entries like:

 

 {  --iPhone 4
                    ["UILaunchImageMinimumOSVersion"] = "7.0",
                    ["UILaunchImageName"] = "Default",
                    ["UILaunchImageOrientation"] = "Portrait",
                    ["UILaunchImageSize"] = "{320, 480}"
   },

 

or are the  ["UILaunchImageOrientation"] = "Landscape" entries sufficient?

 

Thanks,

Thomas



[TOPIC: post.html]
#36

ingemar

[GLOBAL: userInfoPane.html]
ingemar
  • Corona Geek

  • 2,733 posts
  • Enterprise

@toga

 

If you use the list that I wrote a few posts above, then yes you need the portrait entries there. Otherwise the launch screen will not be found.

 

This whole UILaunchImages thing is rather complex as there are many different ways of getting things to work.

CoronaLabs have recently posted their official way to handle this here:

http://coronalabs.com/blog/2014/10/07/tutorial-working-with-the-new-iphones/



[TOPIC: post.html]
#37

toga

[GLOBAL: userInfoPane.html]
toga
  • Contributor

  • 103 posts
  • Corona SDK

Thanks Ingemar,

i have read the blog post for the new iPhones. But for me it is not 100% clear what i need if i have a landscape only app. For example this sentence confuses me:

"Naturally if the app is portrait only or landscape only, you just need to provide the portrait or landscape versions respectively."

 

If i Interpret this correctly i would only need 5 Images:

Default-Landscape-568h@2x.png — 1136×640 (landscape)

Default-Landscape-667h@2x.png — 1336×750 (landscape)

Default-Landscape-736h@2x.png — 2208×1242 (landscape)

Default-Landscape.png — 1024×768 (landscape)

Default-Landscape@2x.png — 2048×1536 (landscape)

 

But this does not correspond with the UILaunchImages e.g.

{  --iPhone 4 LandscapeLeft
                    ["UILaunchImageMinimumOSVersion"] = "7.0",
                    ["UILaunchImageName"] = "Default",
                    ["UILaunchImageOrientation"] = "LandscapeLeft",
                    ["UILaunchImageSize"] = "{320, 480}"
},

 

which would need the Default.png. and what is also strange in the post is that for the description of this files:

Default-Landscape-568h@2x.png — 1136×640 (landscape)

Default-Landscape-667h@2x.png — 1336×750 (landscape)

the dimensions are wrong. As you already described only the iPhone 6+ and iPad lauch Image should be in landscape dimensions.



[TOPIC: post.html]
#38

ingemar

[GLOBAL: userInfoPane.html]
ingemar
  • Corona Geek

  • 2,733 posts
  • Enterprise

I understand the confusion. I must admit that I haven't tried all possible combinations with LandscapeLeft and LandscapeRight together with rotated launch screen graphics. I've adhered to "old-style?" portrait png's (for iPhone 4,5,6) and used the UILaunchImages table as I outlined above.

 

With the new style outlined by CoronaLabs it now seems to be possible to have separate launch screens for landscapeLeft and -Right even on phone devices, meaning that a launch screen will be right-side-up regardless of how the user is holding the device when starting the app. This was previously only possible on the iPad. In the "old-style" way that I use there's only one launch image which is displayed right-side-up only in the app's default orientation (for my apps landscapeRight). If the user is holding the device in landscapeLeft the launch image will be up-side-down during launch until Corona takes over and rotates the scene. That's the way things have been before, so I'm OK with it for the time being.

 

Again I haven't tried the "new" way so I'm not sure how things behave with it.



[TOPIC: post.html]
#39

Prathap Murthy

[GLOBAL: userInfoPane.html]
Prathap Murthy
  • Enthusiast

  • 82 posts
  • Corona SDK

@toga

 

There were some typos in the blog post, Rob has corrected them now.

 

Check my posts in this thread -- http://forums.coronalabs.com/topic/51651-cant-get-uilaunchimages-to-work-ios-8-iphone-5/

 

I've tested the approach outlined in Rob's blog post and it works for both portrait-only and landscape-only apps. However, what I haven't tried is excluding unnecessary launch images and trimming UILaunchImages entries in build.settings to the bare essential for portrait-only or landscape-only apps. If you undertake those tests, do share your results with us. :)



[TOPIC: post.html]
#40

henrik5

[GLOBAL: userInfoPane.html]
henrik5
  • Contributor

  • 251 posts
  • Corona SDK

If I've restarted Corona, made a fresh build, deleted the Ipad 2 app and still get the cached old launch image, is the tips in this thread relevant? Just asking to know if I need to create a new thread to not make this thread go off-topic. IOS 8.4.1.




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