0

In Objective-C, does anyone know how to convert a RGBA HEX color, such as, #6FFFFFFF, to a UIColor?

The first two characters, 6F, are the alpha channel and the remaining 6 characters are the red, green, and blue channels. In this case 6F is about 0.5 and FFFFFF is white.

tentmaking
  • 2,076
  • 4
  • 30
  • 53
  • 1
    Possible duplicate https://stackoverflow.com/q/24263007/189804 (trivial to add the alpha component to any of the code given) – Adam Eberbach Jan 04 '18 at 21:49
  • @AdamEberbach Still not seeing how to convert a hex to alpha from either of those duplicate questions. How do I convert 6F to a alpha? – tentmaking Jan 05 '18 at 14:18

0 Answers0