可能重复: 如何从十六进制字符串创建UIColor?
我想以编程方式设置UIView背景的颜色.
我似乎不能通过Interfacebuilder来做到这一点.如果我想将它设置为某种十六进制代码颜色,我该怎么办呢?
hex uicolor ios
hex ×1
ios ×1
uicolor ×1