[UIColor colorWithRed:21.0 green:194.0 blue:179.0 alpha:0.5]
You're creating your UIColor
wrong - for each parameter needed to create a UIColor
, a value between 0.0
and 1.0
is accepted. To get these, you divide your RGB values by 255:
[UIColor colorWithRed:21.0/255.0 green:194.0/255.0 blue:179.0/255.0 alpha:0.5]