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
基础教程推荐
- navigator.geolocation.getCurrentPosition 在 Android 浏览器上 2022-01-01
- libGDX 从精灵或纹理中获取像素颜色 2022-01-01
- iOS4 创建后台定时器 2022-01-01
- 通过重定向链接在 Google Play 中打开应用 2022-01-01
- iPhone - 获取给定地点/时区的当前日期和时间并将其与同一地点的另一个日期/时间进行比较的正确方法 2022-01-01
- Android:getLastKnownLocation(LocationManager.NETWORK_PROVIDER 2022-01-01
- AdMob 广告未在模拟器中显示 2022-01-01
- Cocos2d iPhone 非矩形精灵触摸检测 2022-01-01
- NSString intValue 不能用于检索电话号码 2022-01-01
- 如何从 logcat 中删除旧数据? 2022-01-01
