UIColor colorWithRed:green:blue:alpha: always returns white unless one argument is 0

The parameter aren’t a values of 0 to 255 but a float between 0.0 and 1.0:

[UIColor colorWithRed:0.0f/255.0f green:155.0f/255.0f blue:218.0f/255.0f alpha:1.0f]; 

Leave a Comment