問(wèn)題:
代碼設(shè)置色值方法:
define HexRGB(rgbValue) [UIColor colorWithRed:((float)((rgbValue&0xFF0000)>>16))/255.0 green:((float)((rgbValue&0xFF00)>>8))/255.0 blue:((float)(rgbValue&0xFF))/255.0 alpha:1.0]
xib中同樣設(shè)置該色值瘾英,在手機(jī)上會(huì)出現(xiàn)偏差。
一使套、問(wèn)題所在:
展示效果
二馅闽、原因分析:
xib或者storestoryboard設(shè)置顏色時(shí)桌粉,RGB Sliders的Color Profile默認(rèn)是Generic RGB形式的绷雏,
三紊遵、解決方案:
使用xib或者storestoryboard設(shè)置顏色時(shí)窄绒,設(shè)置Color Profile如下:
設(shè)置
四沐悦、完美解決成洗。