You can get the components of UIColor like this:
CGFloat *components = CGColorGetComponents(color);
Then get the RGB values:
components[0],components[1],components[2]
1
solved How i can sort 15 views by color ios
You can get the components of UIColor like this:
CGFloat *components = CGColorGetComponents(color);
Then get the RGB values:
components[0],components[1],components[2]
1
solved How i can sort 15 views by color ios