I am using RGB color code for my bar to show in iphone app but they don’t show any color i am getting these code values from photoshop but when i use them they don’t show any color in iphone app
For first line i have RGB code from photoshop is 255.192,0
color=[UIColor colorWithRed:255 green:192 blue:0 alpha:0 ];
For Second line i have RGB code from photoshop is 195,214,155
color=[UIColor colorWithRed:195 green:214 blue:155 alpha:0];
For Third line i have RGB code from photoshop is 49,133,156
color=[UIColor colorWithRed:49 green:133 blue:156 alpha:0 ];
The parameters of
colorWithRed:green:blue:alphaare floating point values between 0 and 1. So you have to divide all numbers by 255, e.g.: