nicklockwood / FXForms

[DEPRECATED]
Other
2.93k stars 339 forks source link

UIColor from JSON #400

Closed hjanuschka closed 9 years ago

hjanuschka commented 9 years ago

hello

using FXForms, in almost all projects i am involved. but one question still open, how to specify a color value in a JSON Dictionary loaded via REST call.

(e.g.: in the Dynamicfields sample)

regards

nicklockwood commented 9 years ago

You could use a hex string and convert it using my ColorUtils library.

hjanuschka commented 9 years ago
- (NSArray *)fields {
}

i am doing it in a similiar way, looping threw the json finding values with # and replacing value with a a uicolor, just thought, there is a built in way in FXForms, issue can be closed