Author Topic: UIColorPicker  (Read 768 times)

aer0ace

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 15
    • View Profile
UIColorPicker
« on: September 17, 2015, 10:51:08 PM »
I'm having problems setting the initial location of the selector. But to note, this happens under a certain condition. What I'm doing is
  1. UIButton existingButton1, existingButton2;
  2. ...
  3. UIColorPicker picker;
  4. picker.value = existingButton1.defaultColor;  // this works
  5.  
  6. // but later on..
  7.  
  8. picker.value = existingButton2.defaultColor;  // this doesn't work. It has the same color as existingButton1
  9.  

Is there something I'm missing to force the update of the UIColorPicker to be the color of the second?

EDIT:

Actually, I figured this out.

  1. picker.Select(existingButton2.defaultColor);
« Last Edit: September 18, 2015, 01:23:47 AM by aer0ace »