Image suggestions are not working 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


基础教程推荐
- 如何在 iPhone 上显示来自 API 的 HTML 文本? 2022-01-01
- 在 gmail 中为 ios 应用程序检索朋友的朋友 2022-01-01
- Android:对话框关闭而不调用关闭 2022-01-01
- android 应用程序已发布,但在 google play 中找不到 2022-01-01
- 如何在没有IB的情况下将2个按钮添加到右侧的UINavigationbar? 2022-01-01
- 如何在 UIImageView 中异步加载图像? 2022-01-01
- UIWebView 委托方法 shouldStartLoadWithRequest:在 WKWebView 中等效? 2022-01-01
- 当从同一个组件调用时,两个 IBAction 触发的顺序是什么? 2022-01-01
- 如何让对象对 Cocos2D 中的触摸做出反应? 2022-01-01
- Kivy Buildozer 无法构建 apk,命令失败:./distribute.sh -m “kivy"d 2022-01-01