Closed dukhanov closed 8 years ago
On Android platform, I can get color name of the button:
button.getColor() // "white", "yellow" and etc
Is it possible to implement the same logic as on Android?
This is actually a bug in the flic app that parses the color wrong. It has been fixed and will be available as on the next Flic App update on App Store that should arrive in about a week or so. Regarding using UIColor or color strings, I personally feel that it is better to get the color directly rather than have to parse a string value. Otherwise all apps using the SDK would have to be updated in case we add new button colors in the future.
Got it. Thanks for quick response.
I have two buttons (Black and White), and I am trying to get color of the buttons:
And I receive string representation of color:
Description from Apple docs https://developer.apple.com/library/ios/documentation/GraphicsImaging/Reference/QuartzCoreFramework/Classes/CIColor_Class/index.html#//apple_ref/occ/instm/CIColor/stringRepresentation:
These values do not look like white or black:
How I can get the correct color value of a button?