我可以动画图像iOS8 LaunchScreen.xib [英] Can I Animate an image iOS8 LaunchScreen.xib

查看:127
本文介绍了我可以动画图像iOS8 LaunchScreen.xib的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

问题:

有没有办法在Xcode 6项目的LaunchScreen.xib文件中制作针对iOS 8.1+进行部署的任何内容?

Question:
Are there ways to animate anything within the LaunchScreen.xib file of an Xcode 6 Project targeted to deploy for iOS 8.1+ ?



上下文:

我想制作简单的动画来传达活动或者让人分心用户在等待时...


Context:
I'm looking to make simple animations to convey activity or serve as a distraction to the user while they wait...



示例:


  • 加载栏

  • 活动指标

  • 动画GIF

  • 在屏幕上移动UIImage

  • 旋转图像

  • A Loading Bar
  • Activity Indicator
  • Animated GIF
  • Move a UIImage across the Screen
  • Rotate an Image

推荐答案

Nope。

启动图片仅在用户选择启动应用程序和应用程序实际开始运行之间的时间段内显示。在此期间,您的应用无法执行任何操作,例如执行动画 - 它尚未运行。启动图像只是一个静态图像,经过精心设计,可以让用户感觉应用程序已快速准备就绪。

The Launch Image is shown only during the time period between when the user chooses to launch your app and when your app has actually started running. During this period, your app can't take any actions such as performing an animation — it's not running yet. The Launch Image is just a static image that, when well designed, helps give the user the impression that your app is ready quickly.

(一些开发人员忽略 HIG 并使用启动图像提供启动画面,有时还带有动画演示。但在这些情况下,启动屏幕仍然是一个静态图像,一旦应用程序开始运行就会发生动画 - 这只是正在运行的应用程序绘制的第一帧动画与静态启动图像的外观相匹配。)

(Some developers ignore the HIG and use the launch image to provide a splash screen, sometimes with an animated presentation. But in those cases, the launch screen is still a static image, and the animation happens once the app begins running — it's just that the first frame of animation drawn by the running app matches the appearance of the static launch image.)

iOS 8中的LaunchScreen.xib功能没有改变这种行为 - 它只在你的应用实际运行之前出现,所以它仍然是静态图像。 LaunchScreen.xib功能为您提供的功能是能够自适应地为许多不同的设备尺寸和样式生成启动图像,而无需在您的应用程序包中单独设计,渲染和发送每个尺寸/方向等的不同图像。

This behavior didn't change with the LaunchScreen.xib feature in iOS 8 — it still appears only before your app is actually running, so it's still a static image. What the LaunchScreen.xib feature gets you is the ability to adaptively produce a launch image for many different device sizes and styles without having to separately design, render, and ship in your app bundle different images for each size/orientation/etc.

如果您的应用程序在获得控制权时实际上还没准备好使用,请考虑您当时正在执行的加载任务是否真的需要完成立即,或者如果你可以让用户立即开始做一些事情,并在后台线程上做更多的设置工作或推迟到实际需要它。

If your app isn't actually ready to use by the time it gains control, think about whether the "loading" tasks you're doing at that time really need to be done immediately, or if you can let the user start doing some things right away and do more setup work on a background thread or defer it until it's actually needed.

这篇关于我可以动画图像iOS8 LaunchScreen.xib的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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