pixelogik / ColorCube

Dominant color extraction for iOS, macOS and Python

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Certain method always produces error

inorganik opened this issue · comments

Hi,

First of all, this is a rad library! Thanks!

I'm finding that whenever I use this particular method, I get an error that crashes the app:

- (NSArray *)extractColorsFromImage:(UIImage *)image flags:(NSUInteger)flags avoidColor:(UIColor*)avoidColor;

This happens avoiding either black or white. The error:

-[UIDeviceRGBColor red]: unrecognized selector sent to instance 0x7f86c8eab8e0

Outside of this small issue, I've found this lib works perfectly.

commented

Hi there,

thanks for the props! And thanks for the report. I will check that asap.

Cheers

commented

Was a one-line fix fortunately :) Thanks again for spotting it!