图像建议不起作用 Xcode 10

Image suggestions are not working Xcode 10(图像建议不起作用 Xcode 10)

本文介绍了图像建议不起作用 Xcode 10的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试将图像设置为 UIImageView.它在旧版本中运行良好.

I am trying to set image to UIImageView. Its working well in older version.

在 Xcode 9.4.1 中

In Xcode 9.4.1

但在 Xcode 10 中

But in Xcode 10

当我尝试输入图片名称时,没有显示图片建议.

When I am trying to type name of image, image suggestion is not showing.

即使图像文字"也不起作用.双击上面的图标也不行.

Even "Image Literal" is not working. Double clicking on above icon also not working.

Xcode 偏好中有设置吗?

如何像以前一样启用图片建议?

推荐答案

在 Xcode 10 和 Swift 4.2 中,只有 Xcode IDE 的代码完成功能(或自动完成)已停止使用旧方式.这是新方法:

In Xcode 10 and Swift 4.2, only the code completion function (or auto-complete) of the Xcode IDE has been discontinued for the old way. Here is the new way:

只需输入 image literal 即可完成默认图标.双击这个图标,它会打开它右侧的媒体库.

Just type image literal and it will complete with default icon. Double click on this icon and it will open the media library right side of it.

只需选择您的图像,它就可以像以前一样工作!

Just choose your image and it work like before!

希望能帮到你!

这篇关于图像建议不起作用 Xcode 10的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!

本文标题为:图像建议不起作用 Xcode 10

基础教程推荐