Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

iPhone X full screen
Started by funkyvisions Jan 01 2018 09:28 AM

8 replies to this topic
[TOPIC CONTROLS]
This topic has been archived. This means that you cannot reply to this topic.
[/TOPIC CONTROLS]
[modOptionsDropdown]
[/modOptionsDropdown]
[reputationFilter]
[TOPIC: post.html]
#1

funkyvisions

[GLOBAL: userInfoPane.html]
funkyvisions
  • Contributor

  • 105 posts
  • Corona SDK

I'm updating a few of my games to use the fullscreen of the iPhone X (including notch area).  Right now it looks like

 

Attached File  simulator.png   251.93KB   12 downloads

 

I work on PhoneGap in my day job, and all we had to do was provide a launch image called Default@2x~universal~anyany.png with the size of 2732x2732 and it started using the fullscreen (much like the old Default-568h.png for the iPhone 5).

 

Here's what I want it to look like.

 

Attached File  corona.png   636.6KB   9 downloads

 

Actually, I'll need to tweak a few buttons, but that's the gist.  I'm using

 

scale = "zoomStretch"

 

in my config.lua (cuz I'm lazy and it works fine for this games layout).

 

Is there a good example/template I can follow for Corona?  I've switched to the Images.xcassets method of providing launch and icon images (using ShapeTumbler as an example -- cuz it had tvOS as well).

 

Thanks,

Doug

 



[TOPIC: post.html]
#2

funkyvisions

[GLOBAL: userInfoPane.html]
funkyvisions
  • Contributor

  • 105 posts
  • Corona SDK

Ah, I just discovered the 

 

UILaunchStoryboardName = "LaunchScreen",

 

settings.  That seems to do the trick.



[TOPIC: post.html]
#3

kyhibleyh

[GLOBAL: userInfoPane.html]
kyhibleyh
  • Observer

  • 4 posts
  • Corona SDK

Well , How many people like me are not used to the full screen mode of iPhone X, after i switch my Android to iPhone X , i miss the home button very much ,

 

I think the game lover will like the full screen very much.



[TOPIC: post.html]
#4

tumultingnta

[GLOBAL: userInfoPane.html]
tumultingnta
  • Observer

  • 2 posts
  • Corona SDK

You can go back .



[TOPIC: post.html]
#5

nicksantan

[GLOBAL: userInfoPane.html]
nicksantan
  • Contributor

  • 106 posts
  • Corona SDK

I'm trying to get my app to run full-screen on iPhoneX. Can I just add the UILaunchStoryboardName = "LaunchScreen" line or do I actually need to create a Storyboard? Right now I'm using the splashScreen = {} table in build.settings. I'm also wondering how this interacts with the ["plugin.CoronaSplashControl"] I bought to remove the Corona splash screen.



[TOPIC: post.html]
#6

Rob Miracle

[GLOBAL: userInfoPane.html]
Rob Miracle
  • Moderator

  • 25,786 posts
  • Enterprise

iOS LaunchScreens have absolutely nothing to do with splash screens. On iOS the LaunchScreen shows **before** your app runs. The Corona Splash Screen is shown after the Corona made app is running. They are totally unrelated.

 

If you want to support screens other than 640x960 in shape, you must include the UILaunchStoryboardName = "LaunchScreen" in the settings.iphone.plist table in build.settings. You must also have a LaunchScreen.storyboardc object in your folder with main.lua.  You can follow the instructions here: http://docs.coronalabs.com/guide/distribution/launchFile/index.html if you want a custom launch screen. Or you can simply copy the LaunchScreen.storyboardc folder from one of our sample projects (or do a File->New Project and copy it from there) if you want a simple all black LaunchScreen (which is okay in most cases).

 

Rob



[TOPIC: post.html]
#7

nicksantan

[GLOBAL: userInfoPane.html]
nicksantan
  • Contributor

  • 106 posts
  • Corona SDK

Thanks for the clarification Rob - 



[TOPIC: post.html]
#8

gbapk.info

[GLOBAL: userInfoPane.html]
gbapk.info
  • Observer

  • 1 posts
  • Corona SDK

I'm endeavoring to get my application to run full-screen on iPhoneX. Can I simply include the UILaunchStoryboardName = "LaunchScreen" line or do I really need to ios version make a Storyboard? At the present time I'm utilizing the splashScreen = {} table in build.settings. I'm likewise thinking about how this cooperates with the ["plugin.CoronaSplashControl"] I purchased to evacuate the Corona sprinkle screen.



[TOPIC: post.html]
#9

Rob Miracle

[GLOBAL: userInfoPane.html]
Rob Miracle
  • Moderator

  • 25,786 posts
  • Enterprise

If you are okay with a black UI Launch screen (which is okay in most cases), simply copy the LaunchScreen.storyboardc file from any of our sample projects in the Corona/SampleCode/ folder.

 

Optionally, if you create a new project from the Corona Welcome Window, the LaunchScreen.storyboardc file should be created for you. 

 

Rob




[topic_controls]
[/topic_controls]