2 xcode swift
当我在Playground中尝试使用文字时,它会显示我这样(不显示我的图像):
在上面我添加图像或UIImage文字,但不显示其内容.
还有颜色(我甚至看不到颜色):
小智 20
键入#colorLiteral()和#imageLiteral()分别查看颜色选择器或图像选择器。
#colorLiteral()
#imageLiteral()
注意:图像选择器将在 中列出您的图像Assets.xcassets。
Assets.xcassets
PGD*_*Dev 7
键入时Color Literal,会出现white box.要设置所需的颜色,请点击该白色框select the colour from Color Picker.
Color Literal
white bo
select the colour from Color Picker
这就是它的样子:
ful*_*oon 5
确保您添加到班级import UIKit
import UIKit
归档时间:
8 年,6 月 前
查看次数:
4695 次
最近记录:
7 年,12 月 前