使用 UIImageView 上设置的启动图像

Nit*_*ish 5 uiimageview ios asset-catalog

我正在为我的应用程序创建说明屏幕,我必须在其中放置全屏尺寸的图像。为此,我必须考虑所有屏幕尺寸,因此我在 AssetCatalog 中创建了一个 Launch 图像集。
在视图中,我有UIImageView. 在为 设置图像时UIImageView,我得到一个白屏。我猜无法在UIImageView.
这里最好的方法是什么?
注意:如果需要,请考虑最新的命名约定(包括 iPhone X)分享您的答案。

dah*_*boy 1

在您LaunchVC拍摄的全尺寸中UIImageView

  1. 将您的图像集放入单个资源文件夹中,作为Resources-> Images.
  2. AssetCatalog按照您已经完成的操作将所有图像放入其中。为此,您必须具有 1x、2x、3x 图像大小才能在AssetCatalog.

我认为您不可能有图像 inbundle或 inAsset Catlog并且图像名称没有拼写错误,但您仍然没有获得图像。