objective c - iOS' equivalent to [NSColor colorUsingColorSpaceName:NSCalibratedRGBColorSpace] -


what uicolor's equivalent nscolor's:

nscolor *newcolor = [somecolor colorusingcolorspacename:nscalibratedrgbcolorspace] 

not uicolor, supported on ios same thing fine.

there no simple equivalent, you'll need bit of work extract components somecolor (based on colour space of cgcolor) , create new color using cgcolorcreate. you'll need convert colour components yourself.


Comments

Popular posts from this blog

jquery - How can I dynamically add a browser tab? -

node.js - Getting the socket id,user id pair of a logged in user(s) -

keyboard - C++ GetAsyncKeyState alternative -