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

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

问题描述

我已经使用LaunchScreen.storyboard(在Xcode 7.1.1中)为我的应用创建了一个简单的启动屏幕.它由一个包含标题的标签,一个包含图标图像(2000 px x 2000 px)的UIView(模式设置为宽高比")和位于脚下的包含版权声明的标签(请参见下图)组成.

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 px屏幕分辨率的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.

注意:-

查看全文

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