MSColorPicker icon indicating copy to clipboard operation
MSColorPicker copied to clipboard

Use only the color wheel

Open jrosales90 opened this issue 5 years ago • 2 comments

The MSColorPicker is so good, but i need to use the color wheel. Is possible? For example, i have a a view in my view controller, and need to put the wheel is the view.

I hope you should can respond me. Regards.

jrosales90 avatar Dec 21 '18 17:12 jrosales90

Hi! Sorry for not replying promptly. You can just add several files to your project that implement a color wheel:

  • MSColorWheelView.h, MSColorWheelView.m
  • MSColorUtils.h, MSColorUtils.m

Listen to UIControlEventValueChanged control event to get notifications about color change.

sgl0v avatar Jan 08 '19 13:01 sgl0v

Hey. I'm late to the party but I wanted to do the same thing. Here's what I did, for anyone else trying to do the same thing.

Basically, what I did is create a class that subclasses MSColorSelectionViewController and initialize that this new subclass instead.

The only thing I added to this subclass is this:

- (void)viewDidLoad
{
    [super viewDidLoad];
    self.navigationController.navigationBarHidden = YES;
    [self.colorSelectionView setSelectedIndex:1 animated:NO];
}

- (MSColorSelectionView *)colorSelectionView
{
    return (MSColorSelectionView *)self.view;
}

I now have only the wheel mode

MarkBirch3D avatar Apr 08 '20 16:04 MarkBirch3D