Questions tagged «image-literals»

9
Xcode 10-图像文字不再可用
Xcode 10发行说明:“已在Xcode 10中删除了Swift图像文字的代码完成功能” 因此,我无法在代码中添加图像(并运行旧项目)不是一个bug。我们如何从现在开始在代码中添加图像,因为仅键入UIImageView(image:将不接受任何png或jpeg。 let cellImage: UIImageView = { let image = UIImageView(image: ???)) return image }() 系统:macOS Mojave Xcode:Xcode 10 Beta 4
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.