What's the difference between UIColor
and NSColor
, and when would one use each? I came across NSColor
while trying to figure out UIColor
uses for attributed strings in iOS. I understand the use of UIColor
for the UIKit and such, but I don't think NSColor
is really useful for this kind of thing. Has NSColor
fallen into disuse with regards to iOS programming?
There is no such thing as NSColor in iOS. UIColor is what you should use.
NSColor only exists as a OSX class.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With