UICachedDeviceRGBColor CGImage]: unrecognized selector sent to instance 0xxxxxxxxxxx'ui
報錯緣由是select
原本應該寫空間的背景色:im
textField.backgroundColor = [UIColor redColor];vi
可是若是你 沒注意,直接寫了co
textField.background = kColorRed;background
就會報這個錯誤。錯誤
由於 顏色
.background這個屬性 的類型是 uiimage,而你卻隔了它一個 rgb的顏色 因此有如此的提示。