简体   繁体   English

Xcode中的Swift启动屏幕

[英]Launch Screen in Xcode for Swift

I have created a simple Launch Screen for my app using the LaunchScreen.storyboard (in Xcode 7.1.1). 我已经使用LaunchScreen.storyboard(在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). 它由一个包含标题的标签,一个包含图标图像(2000 px x 2000 px)的UIView(模式设置为“宽高比”)和位于脚下的包含版权声明的标签(请参见下图)组成。

Can anyone tell me if this will meet the App Store requirements for a Launch Screen? 谁能告诉我这是否满足App Store对启动屏幕的要求?

Thanks! 谢谢!

在此处输入图片说明

There's no problem with your launch screen. 您的启动屏幕没有问题。

The only thing I'd recommend to change is reduce resolution of your icon - there's no need to icon be so big. 我建议更改的唯一一件事是降低图标的分辨率-无需将图标变大。 It will speed up your app launch time and reduce it's size on device. 它将加快您的应用启动时间,并减小其在设备上的大小。

Here's link to Launch Screen guidelines, so you can learn more from there. 这是启动屏幕指南的链接 ,因此您可以从中了解更多信息。

And here's link to App Store Review Guidelines, they don't mention Launch Screens, but still it's worth reading them before app submission. 而且这里是《 App Store审查指南》的链接 ,他们没有提到启动屏幕,但是仍然值得在提交应用程序之前阅读它们。

Three tips to create a great splash screen for your mobile app:- 为您的移动应用创建出色的启动屏幕的三个技巧:-

1 - Use the right size From one smartphone to another, the screen resolution can vary a lot. 1-使用正确的尺寸从一部智能手机到另一部智能手机,屏幕分辨率可能会有很大差异。

Let's imagine you have crafted the perfect splash screen for an iPhone 5S. 假设您为iPhone 5S设计了完美的启动屏幕。 This image should mesure 640 x 1136px. 此图片应确保640 x 1136px。 It will look great on the iPhone 5S, 5C and 5, which have the same screen resolution. 在具有相同屏幕分辨率的iPhone 5S,5C和5上,它将看起来很棒。 But what about the iPhone 4 which has a 640 x 960 px screen resolution? 但是,具有640 x 960 px屏幕分辨率的iPhone 4呢? Displayed on the iPhone 4S or 4, your splash screen will be distorted. 显示在iPhone 4S或4上,您的初始屏幕将变形。

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. 如果您要创建iPhone应用程序,那么没什么大不了的,因为设备很少。

2 - Keep it simple The splash screen doesn't last very long. 2-保持简单启动画面不会持续很长时间。 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 - Tell your users it's loading The splash screen is a still image. 3-告诉您的用户正在加载启动画面是静止图像。 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. 为了使您的用户放心,您应该在初始屏幕中提到您的应用正在加载,并且耐心等待几秒钟,您的用户就可以使用和享受您的应用了。

Note:- 注意:-

Copied from here 这里复制

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

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