skip to Main Content

When I use 255 150 0 in Photoshop the orange differs from the orange I get in Xcode using the RGB sliders. Can anyone help me why this happens?

2

Answers


  1. Use The RGB colors between 0 – 1

    myLabel.textColor= [UIColor colorWithRed:(160/255.0) green:(97/255.0) blue:(5/255.0) alpha:1] ;
    

    See This Link :

    making real rgb color in xcode

    Login or Signup to reply.
  2. If you are setting RGB color from IB then you have to change the RGB type by tapping on settings button to Generic RGB:

    enter image description here

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search