简体   繁体   English

iOS启动屏幕故事板与启动图像

[英]iOS Launch Screen Storyboard vs Launch Images

So, we have two options: 所以,我们有两个选择:

  1. Launch Screen Storyboard 启动屏幕故事板
  2. Launch Images 启动图像

I found out that 'Launch Screen Storyboard' option is the easiest and most efficient, but if you want rounded edges or borders on certain elements, you are constrained. 我发现“启动屏幕故事板”选项是最简单和最有效的,但如果您想要在某些元素上使用圆边或边框,则会受到限制。

'Launch Images' gives you way more room for you to create static PNG's of your UI. “启动图像”为您提供了更多空间来创建UI的静态PNG。 However, they create more files and add to app size. 但是,他们会创建更多文件并添加到应用程序大小。

Apple Indicates: ( here ) Apple表示:( 此处

It's best to use an Xcode storyboard for your launch screen, but you can provide a set of static images if necessary. 最好在启动屏幕上使用Xcode故事板,但如果需要,您可以提供一组静态图像。

During run time, in real life, which is faster? 在运行期间,在现实生活中哪个更快? Which makes app launch faster or easier on the system? 这使得应用程序在系统上更快或更容易启动?

App Thinning 应用细化

It depends on the amount of artwork you are displaying in the launch screen vs the image size in the launch image. 这取决于您在启动屏幕中显示的图稿数量与启动图像中的图像尺寸。 Also techniques like app thinning will create the right variant for each device type to pick the right asset avoiding other which are not necessary. 此外,像app thinning这样的技术将为每种设备类型创建正确的变体,以选择正确的资产,避免其他不必要的资产。

Check out this link when you are using image assets 使用图像资源时,请查看此链接

iOS is fast enough to load either storyboard or image. iOS足够快,可以加载故事板或图像。 There's no need to worry at all, just do what's the most handy for you. 根本没有必要担心,只为你做最方便的事情。

By the way, there's a third option: Let iOS first show the static launch screen/image. 顺便提一下,还有第三种选择:让iOS首先显示静态启动屏幕/图像。 Then show your first view controller having the exact same layout as your launch image but adding dynamic UI elements. 然后显示您的第一个视图控制器具有与启动图像完全相同的布局,但添加动态UI元素。 This first view controller should be alpha animated in. Examples of added dynamic UI elements: loading progress bar, or Sign Up / Log In buttons. 第一个视图控制器应该是alpha动画。添加动态UI元素的示例:加载进度条或注册/登录按钮。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM