在 Xcode 中为 Swift 启动屏幕 [英] Launch Screen in Xcode for Swift

查看:39
本文介绍了在 Xcode 中为 Swift 启动屏幕的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用 LaunchScreen.storyboard(在 Xcode 7.1.1 中)为我的应用程序创建了一个简单的启动屏幕.它由一个包含标题的标签、一个包含图标图像 (2000 px x 2000 px) 的 UIView(模式设置为Aspect Fit")和底部包含版权声明的标签(见下图)组成.

I have created a simple Launch Screen for my app using the LaunchScreen.storyboard (in Xcode 7.1.1). It consists of a label containing a title, a UIView (with mode set to 'Aspect Fit') containing an image of the icon (2000 px x 2000 px) and a label at the foot containing a copyright statement (see image below).

谁能告诉我这是否符合 App Store 对启动屏幕的要求?

Can anyone tell me if this will meet the App Store requirements for a Launch Screen?

谢谢!

推荐答案

为您的移动应用创建出色启动画面的三个技巧:-

1 - 使用正确的尺寸从一部智能手机到另一部智能手机,屏幕分辨率可能会有很大差异.

1 - Use the right size From one smartphone to another, the screen resolution can vary a lot.

假设您已经为 iPhone 5S 制作了完美的启动画面.此图像应测量 640 x 1136 像素.在具有相同屏幕分辨率的 iPhone 5S、5C 和 5 上看起来会很棒.但是屏幕分辨率为 640 x 960 像素的 iPhone 4 呢?在 iPhone 4S 或 4 上显示时,您的启动画面会失真.

Let's imagine you have crafted the perfect splash screen for an iPhone 5S. This image should mesure 640 x 1136px. It will look great on the iPhone 5S, 5C and 5, which have the same screen resolution. But what about the iPhone 4 which has a 640 x 960 px screen resolution? Displayed on the iPhone 4S or 4, your splash screen will be distorted.

要制作完美的屏幕,您应该创建与屏幕分辨率一样多的启动画面.如果您正在创建 iPhone 应用程序,这没什么大不了的,因为设备很少.

To make the perfect one, you should create as much splash screens as there are screen resolutions. If your are creating an iPhone app, it's not a big deal since there are few devices.

2 - 保持简单启动画面不会持续很长时间.因此无需在启动画面上放置长文本.您的用户将没有时间阅读它.而且,这不是启动画面的目的.

2 - Keep it simple The splash screen doesn't last very long. So no need to put a long text on your splash screen. Your users won't have the time to read it. And moreover, that's not the purpose of the splash screen.

使用您的品牌名称、您的徽标、座右铭或任何最能描述您和您的应用的内容.使用这些元素进行清晰的构图,并在纵向模式下创建单个图像.

Use your brand name, your logo, your motto, or whatever describes you and your app the best. Make a clear composition using those elements, and create one single image, in portrait mode.

如果您想为启动画面创建多种尺寸,我建议您专注于图像的中心以放置您的构图.让启动画面的边缘保持自由,您就可以将图像裁剪为不同的所需尺寸.

If you want to create several sizes for your splash screen, I recommend you focus on the center of the image to put your composition. Leaving the edges of the splash screen free will enable you to crop your image to the different desired sizes.

3 - 告诉您的用户它正在加载启动画面是静止图像.当您看到它时,您的手机似乎被冻结了.没发生什么事.您无法与该应用程序进行交互.你被困住了.您只能等待应用完成加载.

3 - Tell your users it's loading The splash screen is a still image. When you see it, it looks like your phone is frozen. Nothing happens. You can't interact with the app. You're stuck. You can only wait for the app to finish loading.

当您的应用启动时,后台可能会发生很多事情.您的应用程序可能需要在准备好使用之前上传或下载数据.您的应用程序会启动一些进程以正确启动新会话或恢复旧会话......好吧,根据用户的手机处理器和/或手机可以访问的带宽,启动您的应用程序的时间可能会有很大差异.

A lot of things can happen in the background when your app is being launched. Your app may need to upload or download data before being ready to be used. Your app launches some processes to boot correctly a new session or restore an old one ... Well, depending on the user's phone processor and/or the bandwidth the phone has access to, the time to boot your app can vary a lot.

为了让您的用户放心,您应该在启动画面中提及您的应用正在加载,并且在耐心等待几秒钟后,您的用户将能够使用和享受您的应用.

To reassure your users, you should mention in your splash screen that your app is loading, and that within a few seconds of patience, your user will be able to use and enjoy your app.

注意:-

复制自 这里

这篇关于在 Xcode 中为 Swift 启动屏幕的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆