How do you set a color with objc?
I want to set a color in objc... Not sure what it needs.
I'm working on UISlider...
This doesn't work:
when dealing with objc, you usually need to look up the reference page from Apple to see what the arguments types are.
In this case, it takes a UIColor. Objc_util comes with UIColor already aliased for you. Poke around the UIColor.... autocomplete in the console, and you may find some useful ones.
or, for example
UIVolor also has a bunch of "named colors" like UIColor.redColor(), etc.
@JonB thank you! Good to know!