UICachedDeviceRGBColor CGImage]: unrecognized selector sent to instance 0xxxxxxxxxxx'ui
报错缘由是select
原本应该写空间的背景色:im
textField.backgroundColor = [UIColor redColor];vi
可是若是你 没注意,直接写了co
textField.background = kColorRed;background
就会报这个错误。错误
由于 颜色
.background这个属性 的类型是 uiimage,而你却隔了它一个 rgb的颜色 因此有如此的提示。