如何在Xcode中设置启动屏幕图像 [英] How to set a launch screen image in Xcode

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

问题描述

我正在开发iPhone应用程序,我正在尝试设置启动屏幕图像
如何设置启动屏幕图像,是否可以添加 UIImageView 并为其分配图像?

I am working on a iPhone App and I am trying to set a launch screen image. How can I set a launch screen image, is it possible to add a UIImageView and assign it a image?

如果您需要更多信息来回答这个问题,请告知我们。

If you need more information to answer the question then please let me know.

提前致谢

推荐答案

是的,您可以在LaunchScreen中轻松设置 UIImageView 。只需从 LaunchScreen.xib 中删除​​预先存在的标签,从Interface Builder添加 UIImageView 。相对于父视图,将以下4个约束分配给 UIImageView

Yes, you can easily set a UIImageView in the LaunchScreen. Simply delete the pre-existing labels from the LaunchScreen.xib, add a UIImageView from the Interface Builder. Assign the following 4 constraints to that UIImageView with respect to the parent view:


  • 底部空间到容器

  • 顶部空间到容器

  • 前导空间到容器

  • 尾随空间到容器

  • Bottom Space to container
  • Top Space to container
  • Leading Space to Container
  • Trailing Space to Container

最后将图像设置为 UIImageView

希望这可以帮助你做你想做的事。

Hope this helps you in what you wanted to do.

更新:

有关详细说明,请查看以下图片:

Have a look at the following image for further description:

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

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