Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

iOS use of NSColor versus UIColor?

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?

like image 703
Fleija Avatar asked May 29 '14 00:05

Fleija


1 Answers

There is no such thing as NSColor in iOS. UIColor is what you should use.

NSColor only exists as a OSX class.

like image 115
Nate Lee Avatar answered Oct 12 '22 01:10

Nate Lee