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


- 如何检查发送到 Android 应用程序的 Firebase 消息的传递状态? 2022-01-01
- 在测试浓缩咖啡时,Android设备不会在屏幕上启动活动 2022-01-01
- Android - 我如何找出用户有多少未读电子邮件? 2022-01-01
- 用 Swift 实现 UITextFieldDelegate 2022-01-01
- 使用自定义动画时在 iOS9 上忽略 edgesForExtendedLayout 2022-01-01
- Android - 拆分 Drawable 2022-01-01
- MalformedJsonException:在第1行第1列路径中使用JsonReader.setLenient(True)接受格式错误的JSON 2022-01-01
- Android viewpager检测滑动超出范围 2022-01-01
- 想使用ViewPager,无法识别android.support.*? 2022-01-01
- android 4中的android RadioButton问题 2022-01-01